pub struct Claims<'a> {
pub host: Option<&'a str>,
pub origin: Option<&'a str>,
pub token: Option<&'a str>,
}Expand description
What a request says of where it comes from.
Fields§
§host: Option<&'a str>§origin: Option<&'a str>§token: Option<&'a str>The token it gives, from the header or the query its route takes.
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for Claims<'a>
impl<'a> RefUnwindSafe for Claims<'a>
impl<'a> Send for Claims<'a>
impl<'a> Sync for Claims<'a>
impl<'a> Unpin for Claims<'a>
impl<'a> UnsafeUnpin for Claims<'a>
impl<'a> UnwindSafe for Claims<'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