pub enum UserId<'u> {
Id(u64),
Username(&'u str),
}
Variants§
Trait Implementations§
Auto Trait Implementations§
impl<'u> Freeze for UserId<'u>
impl<'u> RefUnwindSafe for UserId<'u>
impl<'u> Send for UserId<'u>
impl<'u> Sync for UserId<'u>
impl<'u> Unpin for UserId<'u>
impl<'u> UnwindSafe for UserId<'u>
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