pub struct ResolvedStoreDeviceState {
pub devices: BTreeMap<StoreDeviceId, StoreDeviceRecord>,
pub recovery: Vec<OwnerRecoveryCursor>,
pub state_hash: ObjectHash,
}Fields§
§devices: BTreeMap<StoreDeviceId, StoreDeviceRecord>§recovery: Vec<OwnerRecoveryCursor>§state_hash: ObjectHashImplementations§
Source§impl ResolvedStoreDeviceState
impl ResolvedStoreDeviceState
pub fn validate_canonical(&self) -> Result<(), StoreProtocolError>
pub fn founder( root: &StoreRootRef, founder_registration: StoreDeviceRegistrationRef, founder_pubkey: &str, founder_grant: MembershipGrantId, founder_recovery: &GrantStreamAnchor, ) -> Result<Self, StoreProtocolError>
pub fn activate_registration( &self, registration: StoreDeviceRegistrationRef, recovery: Option<OwnerRecoveryCursor>, ) -> Result<Self, StoreProtocolError>
pub fn activate_owner_recovery( &self, owner_grant: MembershipGrantId, activation: OwnerRecoveryActivationId, ) -> Result<Self, StoreProtocolError>
pub fn apply_verified_lifecycle( self, commit: &StoreBatchCommit, registrations: &[ActivatedStoreDeviceRegistration], preactivated: Option<&StoreDeviceRegistrationRef>, owner_recovery: Option<(MembershipGrantId, OwnerRecoveryActivationId)>, ) -> Result<Self, StoreProtocolError>
pub fn propose_exclusion( &self, reference: StoreDeviceExclusionProposalRef, proposal: &StoreDeviceExclusionProposal, predecessor_ref: &StoreDeviceStateRef, ) -> Result<Self, StoreProtocolError>
pub fn cancel_exclusion( &self, cancellation: StoreDeviceExclusionCancellationRef, ) -> Result<Self, StoreProtocolError>
pub fn exclude( &self, exclusion: StoreDeviceExclusionRef, accepted_cut: StoreHistoryCut, ) -> Result<Self, StoreProtocolError>
pub fn merge( states: impl IntoIterator<Item = Self>, ) -> Result<Self, StoreProtocolError>
Trait Implementations§
Source§impl Clone for ResolvedStoreDeviceState
impl Clone for ResolvedStoreDeviceState
Source§fn clone(&self) -> ResolvedStoreDeviceState
fn clone(&self) -> ResolvedStoreDeviceState
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ResolvedStoreDeviceState
impl Debug for ResolvedStoreDeviceState
Source§impl<'de> Deserialize<'de> for ResolvedStoreDeviceState
impl<'de> Deserialize<'de> for ResolvedStoreDeviceState
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for ResolvedStoreDeviceState
impl PartialEq for ResolvedStoreDeviceState
Source§impl Serialize for ResolvedStoreDeviceState
impl Serialize for ResolvedStoreDeviceState
impl Eq for ResolvedStoreDeviceState
impl StructuralPartialEq for ResolvedStoreDeviceState
Auto Trait Implementations§
impl Freeze for ResolvedStoreDeviceState
impl RefUnwindSafe for ResolvedStoreDeviceState
impl Send for ResolvedStoreDeviceState
impl Sync for ResolvedStoreDeviceState
impl Unpin for ResolvedStoreDeviceState
impl UnsafeUnpin for ResolvedStoreDeviceState
impl UnwindSafe for ResolvedStoreDeviceState
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.