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
sourceimpl 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
sourceimpl Clone for ReadOnlyUserIdentities
impl Clone for ReadOnlyUserIdentities
sourcefn clone(&self) -> ReadOnlyUserIdentities
fn clone(&self) -> ReadOnlyUserIdentities
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for ReadOnlyUserIdentities
impl Debug for ReadOnlyUserIdentities
sourceimpl<'de> Deserialize<'de> for ReadOnlyUserIdentities
impl<'de> Deserialize<'de> for ReadOnlyUserIdentities
sourcefn 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
sourceimpl From<ReadOnlyOwnUserIdentity> for ReadOnlyUserIdentities
impl From<ReadOnlyOwnUserIdentity> for ReadOnlyUserIdentities
sourcefn from(identity: ReadOnlyOwnUserIdentity) -> Self
fn from(identity: ReadOnlyOwnUserIdentity) -> Self
Converts to this type from the input type.
sourceimpl From<ReadOnlyUserIdentity> for ReadOnlyUserIdentities
impl From<ReadOnlyUserIdentity> for ReadOnlyUserIdentities
sourcefn from(identity: ReadOnlyUserIdentity) -> Self
fn from(identity: ReadOnlyUserIdentity) -> Self
Converts to this type from the input type.
sourceimpl Serialize for ReadOnlyUserIdentities
impl Serialize for ReadOnlyUserIdentities
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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more