pub struct ReqCtx {
pub query: String,
pub mount: String,
pub path_params: HashMap<String, String>,
pub headers: HashMap<String, String>,
pub claims: Option<Claims>,
pub csrf: Option<String>,
}Fields§
§query: StringRaw query string (without leading ?).
mount: StringPrefix the adminx app is mounted at (e.g. /adminx), used to build links.
path_params: HashMap<String, String>§headers: HashMap<String, String>§claims: Option<Claims>§csrf: Option<String>Raw CSRF cookie value, if the request carried one. Compared against the
hidden form field on POST; see crate::csrf.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ReqCtx
impl RefUnwindSafe for ReqCtx
impl Send for ReqCtx
impl Sync for ReqCtx
impl Unpin for ReqCtx
impl UnsafeUnpin for ReqCtx
impl UnwindSafe for ReqCtx
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