pub enum UserIdentities {
Own(OwnUserIdentity),
Other(UserIdentity),
}
Expand description
Enum over the different user identity types we can have.
Variants§
Own(OwnUserIdentity)
Our own user identity.
Other(UserIdentity)
An identity belonging to another user.
Implementations§
source§impl UserIdentities
impl UserIdentities
sourcepub fn own(self) -> Option<OwnUserIdentity>
pub fn own(self) -> Option<OwnUserIdentity>
Destructure the enum into an OwnUserIdentity
if it’s of the correct
type.
sourcepub fn other(self) -> Option<UserIdentity>
pub fn other(self) -> Option<UserIdentity>
Destructure the enum into an UserIdentity
if it’s of the correct
type.
Trait Implementations§
source§impl Clone for UserIdentities
impl Clone for UserIdentities
source§fn clone(&self) -> UserIdentities
fn clone(&self) -> UserIdentities
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 UserIdentities
impl Debug for UserIdentities
source§impl From<OwnUserIdentity> for UserIdentities
impl From<OwnUserIdentity> for UserIdentities
source§fn from(i: OwnUserIdentity) -> Self
fn from(i: OwnUserIdentity) -> Self
Converts to this type from the input type.
source§impl From<UserIdentity> for UserIdentities
impl From<UserIdentity> for UserIdentities
source§fn from(i: UserIdentity) -> Self
fn from(i: UserIdentity) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for UserIdentities
impl Send for UserIdentities
impl Sync for UserIdentities
impl Unpin for UserIdentities
impl !UnwindSafe for UserIdentities
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<>