pub struct FixtureResponse {
pub status: FixtureStatus,
pub headers: HashMap<String, String>,
pub body: Option<Value>,
pub content_type: Option<String>,
pub delay_ms: u64,
pub template_vars: HashMap<String, Value>,
}
Expand description
Response configuration for fixtures
Fields§
§status: FixtureStatus
Response status
headers: HashMap<String, String>
Response headers
body: Option<Value>
Response body (can be string, JSON, or base64-encoded binary)
content_type: Option<String>
Content type
delay_ms: u64
Response delay in milliseconds
template_vars: HashMap<String, Value>
Template variables for dynamic responses
Trait Implementations§
Source§impl Clone for FixtureResponse
impl Clone for FixtureResponse
Source§fn clone(&self) -> FixtureResponse
fn clone(&self) -> FixtureResponse
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 FixtureResponse
impl Debug for FixtureResponse
Source§impl<'de> Deserialize<'de> for FixtureResponse
impl<'de> Deserialize<'de> for FixtureResponse
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 FixtureResponse
impl RefUnwindSafe for FixtureResponse
impl Send for FixtureResponse
impl Sync for FixtureResponse
impl Unpin for FixtureResponse
impl UnwindSafe for FixtureResponse
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