pub fn apply(
        &mut self,
        change_events: Vec<ProfileChangeEvent>,
        vault: &mut dyn ProfileVault,
    ) -> ockam_core::Result<()> {
        ProfileChangeHistory::check_consistency(self.change_events(), &change_events)?;

        for event in change_events.iter() {
            self.change_history.verify_event(event, vault)?;
            self.change_history.push_event(event.clone());
        }

        Ok(())
    }
/// Update [`Contact`] by applying new change events
Update [`Contact`] by applying new change events
Update [ ` Contact ` ] by applying new change events
pub fn apply(
        &mut self,
        change_events: Vec<ProfileChangeEvent>,
        vault: &mut dyn ProfileVault,
    ) -> ockam_core::Result<()> {
        ProfileChangeHistory::check_consistency(self.change_events(), &change_events)?;
        for event in change_events.iter() {
            self.change_history.verify_event(event, vault)?;
            self.change_history.push_event(event.clone());
        }
        Ok(())
    }
pub fn apply ( & mut self , change_events : Vec < ProfileChangeEvent > , vault : & mut dyn ProfileVault , ) -> ockam_core :: Result < ( ) > { ProfileChangeHistory :: check_consistency ( self . change_events ( ) , & change_events ) ? ; for event in change_events . iter ( ) { self . change_history . verify_event ( event , vault ) ? ; self . change_history . push_event ( event . clone ( ) ) ; } Ok ( ( ) ) }
Update [`Contact`] by applying new change events
Update [ ` Contact ` ] by applying new change events
&mut self
change_events
Vec<ProfileChangeEvent>
vault
&mut dyn ProfileVault
&mut self
change_events
Vec<ProfileChangeEvent>
vault
&mut dyn ProfileVault