pub struct StateResponseOverride {
pub status: Option<u16>,
pub body: Option<Value>,
pub headers: Option<HashMap<String, String>>,
}Expand description
State-based response override
Fields§
§status: Option<u16>Optional status code override (if None, uses stub’s default status)
body: Option<Value>Optional body override (if None, uses stub’s default body)
headers: Option<HashMap<String, String>>Optional headers override (merged with stub’s default headers)
Trait Implementations§
Source§impl Clone for StateResponseOverride
impl Clone for StateResponseOverride
Source§fn clone(&self) -> StateResponseOverride
fn clone(&self) -> StateResponseOverride
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 moreSource§impl Debug for StateResponseOverride
impl Debug for StateResponseOverride
Source§impl<'de> Deserialize<'de> for StateResponseOverride
impl<'de> Deserialize<'de> for StateResponseOverride
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for StateResponseOverride
impl RefUnwindSafe for StateResponseOverride
impl Send for StateResponseOverride
impl Sync for StateResponseOverride
impl Unpin for StateResponseOverride
impl UnwindSafe for StateResponseOverride
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