pub enum ReadOnlyUserIdentities {
Own(ReadOnlyOwnUserIdentity),
Other(ReadOnlyUserIdentity),
}
Expand description
Enum over the different user identity types we can have.
Variants§
Own(ReadOnlyOwnUserIdentity)
Our own user identity.
Other(ReadOnlyUserIdentity)
Identities of other users.
Implementations§
source§impl ReadOnlyUserIdentities
impl ReadOnlyUserIdentities
sourcepub fn master_key(&self) -> &MasterPubkey
pub fn master_key(&self) -> &MasterPubkey
Get the master key of the identity.
sourcepub fn self_signing_key(&self) -> &SelfSigningPubkey
pub fn self_signing_key(&self) -> &SelfSigningPubkey
Get the self-signing key of the identity.
sourcepub fn user_signing_key(&self) -> Option<&UserSigningPubkey>
pub fn user_signing_key(&self) -> Option<&UserSigningPubkey>
Get the user-signing key of the identity, this is only present for our own user identity..
sourcepub fn own(&self) -> Option<&ReadOnlyOwnUserIdentity>
pub fn own(&self) -> Option<&ReadOnlyOwnUserIdentity>
Destructure the enum into an ReadOnlyOwnUserIdentity
if it’s of the
correct type.
sourcepub fn other(&self) -> Option<&ReadOnlyUserIdentity>
pub fn other(&self) -> Option<&ReadOnlyUserIdentity>
Destructure the enum into an UserIdentity
if it’s of the correct
type.
Trait Implementations§
source§impl Clone for ReadOnlyUserIdentities
impl Clone for ReadOnlyUserIdentities
source§fn clone(&self) -> ReadOnlyUserIdentities
fn clone(&self) -> ReadOnlyUserIdentities
Returns a copy 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 ReadOnlyUserIdentities
impl Debug for ReadOnlyUserIdentities
source§impl<'de> Deserialize<'de> for ReadOnlyUserIdentities
impl<'de> Deserialize<'de> for ReadOnlyUserIdentities
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 From<ReadOnlyOwnUserIdentity> for ReadOnlyUserIdentities
impl From<ReadOnlyOwnUserIdentity> for ReadOnlyUserIdentities
source§fn from(identity: ReadOnlyOwnUserIdentity) -> Self
fn from(identity: ReadOnlyOwnUserIdentity) -> Self
Converts to this type from the input type.
source§impl From<ReadOnlyUserIdentity> for ReadOnlyUserIdentities
impl From<ReadOnlyUserIdentity> for ReadOnlyUserIdentities
source§fn from(identity: ReadOnlyUserIdentity) -> Self
fn from(identity: ReadOnlyUserIdentity) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl RefUnwindSafe for ReadOnlyUserIdentities
impl Send for ReadOnlyUserIdentities
impl Sync for ReadOnlyUserIdentities
impl Unpin for ReadOnlyUserIdentities
impl UnwindSafe for ReadOnlyUserIdentities
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
§impl<T> CompatExt for T
impl<T> CompatExt for T
§impl<T, UT> HandleAlloc<UT> for T
impl<T, UT> HandleAlloc<UT> for T
§fn new_handle(value: Arc<T>) -> Handle
fn new_handle(value: Arc<T>) -> Handle
Create a new handle for an Arc value Read more
§fn clone_handle(handle: Handle) -> Handle
fn clone_handle(handle: Handle) -> Handle
Clone a handle Read more
§fn consume_handle(handle: Handle) -> Arc<T>
fn consume_handle(handle: Handle) -> Arc<T>
Consume a handle, getting back the initial
Arc<>