pub struct WebContext { /* private fields */ }Implementations§
Source§impl WebContext
impl WebContext
pub fn new(request: Arc<WebRequest>) -> Self
pub fn request(&self) -> &WebRequest
pub fn request_arc(&self) -> Arc<WebRequest> ⓘ
pub fn query(&self) -> &MultiStringValue
pub fn body(&self) -> Bytes
pub fn body_json(&self) -> Result<&Value>
pub fn query_json(&self) -> Result<&Value>
Auto Trait Implementations§
impl !Freeze for WebContext
impl RefUnwindSafe for WebContext
impl Send for WebContext
impl Sync for WebContext
impl Unpin for WebContext
impl UnsafeUnpin for WebContext
impl UnwindSafe for WebContext
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