pub enum User<'a> {
CurrentUser,
UserID(&'a str),
Username(&'a str),
}Expand description
References a forum user.
Variants§
CurrentUser
References the current logged-in user.
UserID(&'a str)
References a user ID.
Username(&'a str)
References a username.
Auto Trait Implementations§
impl<'a> Freeze for User<'a>
impl<'a> RefUnwindSafe for User<'a>
impl<'a> Send for User<'a>
impl<'a> Sync for User<'a>
impl<'a> Unpin for User<'a>
impl<'a> UnwindSafe for User<'a>
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