pub struct ProviderAdminState { /* private fields */ }Implementations§
Source§impl ProviderAdminState
impl ProviderAdminState
pub fn founder(grant: ProviderAdminGrantRecord) -> Self
pub fn founder_from_root( root: StoreRootRef, administrator: StoreDeviceRegistrationRef, grant: &FounderProviderAdminGrant, ) -> Self
pub fn records( &self, ) -> &BTreeMap<ProviderAdminGrantId, ProviderAdminGrantRecord>
pub fn active(&self) -> BTreeSet<ProviderAdminGrantId>
pub fn tombstones(&self) -> &BTreeSet<ProviderAdminGrantId>
pub fn apply( &mut self, change: ProviderAdminChange, origin: ProviderAdminGrantOrigin, ) -> Result<(), ProviderAdminReducerError>
pub fn state_hash(&self) -> ObjectHash
pub fn merge( states: impl IntoIterator<Item = Self>, ) -> Result<Self, ProviderAdminReducerError>
Trait Implementations§
Source§impl Clone for ProviderAdminState
impl Clone for ProviderAdminState
Source§fn clone(&self) -> ProviderAdminState
fn clone(&self) -> ProviderAdminState
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 ProviderAdminState
impl Debug for ProviderAdminState
Source§impl<'de> Deserialize<'de> for ProviderAdminState
impl<'de> Deserialize<'de> for ProviderAdminState
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 ProviderAdminState
impl PartialEq for ProviderAdminState
Source§impl Serialize for ProviderAdminState
impl Serialize for ProviderAdminState
impl Eq for ProviderAdminState
impl StructuralPartialEq for ProviderAdminState
Auto Trait Implementations§
impl Freeze for ProviderAdminState
impl RefUnwindSafe for ProviderAdminState
impl Send for ProviderAdminState
impl Sync for ProviderAdminState
impl Unpin for ProviderAdminState
impl UnsafeUnpin for ProviderAdminState
impl UnwindSafe for ProviderAdminState
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.