pub struct User {
pub id: String,
pub name: String,
}Expand description
User information extractor
Fields§
§id: String§name: StringTrait Implementations§
Source§impl FromContext for User
impl FromContext for User
Source§async fn from_context(ctx: &Context) -> Self
async fn from_context(ctx: &Context) -> Self
Extract data from the context
Auto Trait Implementations§
impl Freeze for User
impl RefUnwindSafe for User
impl Send for User
impl Sync for User
impl Unpin for User
impl UnsafeUnpin for User
impl UnwindSafe for User
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