pub enum MaybePartialUser {
Full(User),
Partial {
id: u64,
},
}Expand description
Potentially a partial user.
Variants§
Trait Implementations§
Source§impl Clone for MaybePartialUser
impl Clone for MaybePartialUser
Source§fn clone(&self) -> MaybePartialUser
fn clone(&self) -> MaybePartialUser
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 MaybePartialUser
impl Debug for MaybePartialUser
Auto Trait Implementations§
impl Freeze for MaybePartialUser
impl RefUnwindSafe for MaybePartialUser
impl Send for MaybePartialUser
impl Sync for MaybePartialUser
impl Unpin for MaybePartialUser
impl UnwindSafe for MaybePartialUser
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