pub struct RequestContext {
pub method: String,
pub path: String,
pub query: HashMap<String, String>,
pub headers: HashMap<String, String>,
pub body: Option<Vec<u8>>,
pub params: HashMap<String, String>,
pub route_name: String,
pub namespace: String,
pub service_name: Option<String>,
pub documents: HashMap<String, Value>,
}Expand description
Request context passed to JavaScript modules
Fields§
§method: String§path: String§query: HashMap<String, String>§headers: HashMap<String, String>§body: Option<Vec<u8>>§params: HashMap<String, String>§route_name: String§namespace: String§service_name: Option<String>§documents: HashMap<String, Value>Documents store - passed to modules for document operations
Trait Implementations§
Source§impl Clone for RequestContext
impl Clone for RequestContext
Source§fn clone(&self) -> RequestContext
fn clone(&self) -> RequestContext
Returns a duplicate of the value. Read more
1.0.0 · 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 RequestContext
impl RefUnwindSafe for RequestContext
impl Send for RequestContext
impl Sync for RequestContext
impl Unpin for RequestContext
impl UnwindSafe for RequestContext
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