pub enum CloudAccessState {
Present {
member_pubkey: String,
provider_account_email: Option<String>,
},
Absent {
member_pubkey: String,
provider_account_email: Option<String>,
},
}Variants§
Implementations§
Source§impl CloudAccessState
impl CloudAccessState
pub fn member_pubkey(&self) -> &str
pub fn provider_account_email(&self) -> Option<&str>
pub fn require_provider_email( &self, provider: &str, ) -> Result<&str, CloudHomeError>
Trait Implementations§
Source§impl Clone for CloudAccessState
impl Clone for CloudAccessState
Source§fn clone(&self) -> CloudAccessState
fn clone(&self) -> CloudAccessState
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 CloudAccessState
impl Debug for CloudAccessState
Source§impl<'de> Deserialize<'de> for CloudAccessState
impl<'de> Deserialize<'de> for CloudAccessState
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 CloudAccessState
impl PartialEq for CloudAccessState
Source§impl Serialize for CloudAccessState
impl Serialize for CloudAccessState
impl Eq for CloudAccessState
impl StructuralPartialEq for CloudAccessState
Auto Trait Implementations§
impl Freeze for CloudAccessState
impl RefUnwindSafe for CloudAccessState
impl Send for CloudAccessState
impl Sync for CloudAccessState
impl Unpin for CloudAccessState
impl UnsafeUnpin for CloudAccessState
impl UnwindSafe for CloudAccessState
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.