pub fn new(mf: &Manifest) -> Self {
        UpgradeInfo {
            name: mf.name.clone(),
            version: mf
                .version
                .clone()
                .expect("version must be set before calling UpgradeInfo::new"),
            metadata: mf
                .metadata
                .clone()
                .expect("metadata must exist on every manifest"),
            slackMode: mf.upgradeNotifications.clone().unwrap_or_default(),
            region: mf.region.clone(),
            namespace: mf.namespace.clone(),
            diff: None,
        }
    }
/// Export the information needed for book-keeping
///
/// Requires a valid manifest with a pre-determined version
Export the information needed for book-keeping
Requires a valid manifest with a pre-determined version
Export the information needed for book - keeping Requires a valid manifest with a pre - determined version
pub fn new(mf: &Manifest) -> Self {
        UpgradeInfo {
            name: mf.name.clone(),
            version: mf
                .version
                .clone()
                .expect("version must be set before calling UpgradeInfo::new"),
            metadata: mf
                .metadata
                .clone()
                .expect("metadata must exist on every manifest"),
            slackMode: mf.upgradeNotifications.clone().unwrap_or_default(),
            region: mf.region.clone(),
            namespace: mf.namespace.clone(),
            diff: None,
        }
    }
pub fn new ( mf : & Manifest ) -> Self { UpgradeInfo { name : mf . name . clone ( ) , version : mf . version . clone ( ) . expect ( " " ) , metadata : mf . metadata . clone ( ) . expect ( " " ) , slackMode : mf . upgradeNotifications . clone ( ) . unwrap_or_default ( ) , region : mf . region . clone ( ) , namespace : mf . namespace . clone ( ) , diff : None , } }
Export the information needed for book-keeping
Requires a valid manifest with a pre-determined version
Export the information needed for book - keeping Requires a valid manifest with a pre - determined version
mf
&Manifest
mf
&Manifest