pub struct IncludeRequest<'a> {
pub path: &'a str,
pub query: Option<&'a str>,
pub identity: Option<&'a str>,
}Expand description
What a resolver is told about the request being served.
Deliberately thin. A resolver gets the path, the query and who is asking — no peer address, no headers, no connection, and no session token — so that generating a page cannot widen what a site learns about its reader, and cannot leak a bearer credential into the page it produces.
Fields§
§path: &'a strThe requested path, as it appeared in the GET.
query: Option<&'a str>The query string, without the leading ?, if the request carried one.
identity: Option<&'a str>Who is asking, resolved from their session token, or None for
anonymous. A token that did not resolve is None too: a resolver must
not be able to tell “unknown token” from “no token”.
Trait Implementations§
Source§impl<'a> Clone for IncludeRequest<'a>
impl<'a> Clone for IncludeRequest<'a>
impl<'a> Copy for IncludeRequest<'a>
Auto Trait Implementations§
impl<'a> Freeze for IncludeRequest<'a>
impl<'a> RefUnwindSafe for IncludeRequest<'a>
impl<'a> Send for IncludeRequest<'a>
impl<'a> Sync for IncludeRequest<'a>
impl<'a> Unpin for IncludeRequest<'a>
impl<'a> UnsafeUnpin for IncludeRequest<'a>
impl<'a> UnwindSafe for IncludeRequest<'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