pub fn register_app(
        &mut self,
        apps_item: &AppsItem,
        manifest: &Manifest,
    ) -> Result<(), RegistrationError> {
        let _ = AppsRegistry::validate(
            &apps_item.get_manifest_url(),
            &apps_item.get_update_url(),
            manifest,
        )?;

        self.register_or_replace(apps_item)?;
        Ok(())
    }
// Register an app in the registry
// When re-install an existing app, we just overwrite existing one.
// In future, we could change the policy.
Register an app in the registry
When re-install an existing app, we just overwrite existing one.
In future, we could change the policy.
Register an app in the registry When re - install an existing app we just overwrite existing one . In future we could change the policy .
pub fn register_app(
        &mut self,
        apps_item: &AppsItem,
        manifest: &Manifest,
    ) -> Result<(), RegistrationError> {
        let _ = AppsRegistry::validate(
            &apps_item.get_manifest_url(),
            &apps_item.get_update_url(),
            manifest,
        )?;
        self.register_or_replace(apps_item)?;
        Ok(())
    }
pub fn register_app ( & mut self , apps_item : & AppsItem , manifest : & Manifest , ) -> Result < ( ) , RegistrationError > { let _ = AppsRegistry :: validate ( & apps_item . get_manifest_url ( ) , & apps_item . get_update_url ( ) , manifest , ) ? ; self . register_or_replace ( apps_item ) ? ; Ok ( ( ) ) }
Register an app in the registry
When re-install an existing app, we just overwrite existing one.
Register an app in the registry When re - install an existing app we just overwrite existing one .
&mut self
apps_item
&AppsItem
manifest
&Manifest
&mut self
apps_item
&AppsItem
manifest
&Manifest