pub struct EndpointContextPatch {
pub method: Option<HttpMethod>,
pub request: Option<AuthRequest>,
pub path: Option<String>,
pub body: Option<JsValue>,
pub query: Option<JsValue>,
pub params: Option<JsValue>,
pub headers: Option<HashMap<String, String>>,
}Expand description
Context patches accumulate without replacing the original input seen by later before hooks.
Fields§
§method: Option<HttpMethod>§request: Option<AuthRequest>§path: Option<String>§body: Option<JsValue>§query: Option<JsValue>§params: Option<JsValue>§headers: Option<HashMap<String, String>>Implementations§
Source§impl EndpointContextPatch
impl EndpointContextPatch
pub fn merge(&mut self, patch: Self)
pub fn apply(self, call: &mut EndpointCall)
Trait Implementations§
Source§impl Clone for EndpointContextPatch
impl Clone for EndpointContextPatch
Source§impl Debug for EndpointContextPatch
impl Debug for EndpointContextPatch
Auto Trait Implementations§
impl Freeze for EndpointContextPatch
impl RefUnwindSafe for EndpointContextPatch
impl Send for EndpointContextPatch
impl Sync for EndpointContextPatch
impl Unpin for EndpointContextPatch
impl UnsafeUnpin for EndpointContextPatch
impl UnwindSafe for EndpointContextPatch
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