pub fn apply_to_contact(
        &mut self,
        id: &ProfileIdentifier,
        change_events: Vec<ProfileChangeEvent>,
    ) -> ockam_core::Result<()> {
        let contact;
        if let Some(c) = self.contacts.get_mut(id) {
            contact = c;
        } else {
            return Err(OckamError::ContactNotFound.into());
        }

        let mut vault = self.vault.lock().unwrap();

        contact.apply(change_events, vault.deref_mut())
    }
/// Update [`Contact`] by applying new change events
Update [`Contact`] by applying new change events
Update [ ` Contact ` ] by applying new change events
pub fn apply_to_contact(
        &mut self,
        id: &ProfileIdentifier,
        change_events: Vec<ProfileChangeEvent>,
    ) -> ockam_core::Result<()> {
        let contact;
        if let Some(c) = self.contacts.get_mut(id) {
            contact = c;
        } else {
            return Err(OckamError::ContactNotFound.into());
        }
        let mut vault = self.vault.lock().unwrap();
        contact.apply(change_events, vault.deref_mut())
    }
pub fn apply_to_contact ( & mut self , id : & ProfileIdentifier , change_events : Vec < ProfileChangeEvent > , ) -> ockam_core :: Result < ( ) > { let contact ; if let Some ( c ) = self . contacts . get_mut ( id ) { contact = c ; } else { return Err ( OckamError :: ContactNotFound . into ( ) ) ; } let mut vault = self . vault . lock ( ) . unwrap ( ) ; contact . apply ( change_events , vault . deref_mut ( ) ) }
Update [`Contact`] by applying new change events
Update [ ` Contact ` ] by applying new change events
&mut self
id
&ProfileIdentifier
change_events
Vec<ProfileChangeEvent>
&mut self
id
&ProfileIdentifier
change_events
Vec<ProfileChangeEvent>