pub enum ResponseAction {
Allow,
Block,
Modify {
body: String,
},
Fulfill {
status: u16,
headers: HashMap<String, String>,
body: String,
},
}Expand description
Action to take for intercepted response headers.
Variants§
Allow
Allow the response to proceed unchanged.
Block
Block/cancel the response.
Modify
Modify response body content.
Fulfill
Fulfill the response with fully synthetic data (complete response mocking).
Implementations§
Trait Implementations§
Source§impl Clone for ResponseAction
impl Clone for ResponseAction
Source§fn clone(&self) -> ResponseAction
fn clone(&self) -> ResponseAction
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 ResponseAction
impl RefUnwindSafe for ResponseAction
impl Send for ResponseAction
impl Sync for ResponseAction
impl Unpin for ResponseAction
impl UnsafeUnpin for ResponseAction
impl UnwindSafe for ResponseAction
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