pub struct DevToolsBag {
pub id: String,
pub request_id: String,
pub method: String,
pub path: String,
pub started: Instant,
/* private fields */
}Expand description
Per-request collection bag (stored on Request extensions).
Fields§
§id: String§request_id: String§method: String§path: String§started: InstantImplementations§
Source§impl DevToolsBag
impl DevToolsBag
pub fn new(id: String, request_id: String, method: String, path: String) -> Self
pub fn push_log(&self, line: LogLine)
pub fn push_query(&self, q: QueryLine)
pub fn push_http(&self, h: HttpLine)
pub fn push_mail(&self, m: MailLine)
pub fn push_job(&self, j: JobLine)
pub fn push_cache(&self, c: CacheLine)
pub fn set_auth(&self, auth: AuthSnap)
pub fn set_route(&self, route: RouteSnap)
pub fn set_locale(&self, locale: Option<String>)
pub fn set_csrf(&self, present: Option<bool>)
pub fn set_rate_limit(&self, rl: Option<RateLimitSnap>)
pub fn set_encoding(&self, encoding: Option<String>)
pub fn finish(self, status: u16) -> RequestSnapshot
Trait Implementations§
Source§impl Clone for DevToolsBag
impl Clone for DevToolsBag
Source§fn clone(&self) -> DevToolsBag
fn clone(&self) -> DevToolsBag
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for DevToolsBag
impl RefUnwindSafe for DevToolsBag
impl Send for DevToolsBag
impl Sync for DevToolsBag
impl Unpin for DevToolsBag
impl UnsafeUnpin for DevToolsBag
impl UnwindSafe for DevToolsBag
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