pub struct MockSnapshotItem {
pub id: String,
pub method: String,
pub path: String,
pub status_code: u16,
pub response_body: Value,
pub response_headers: Option<HashMap<String, String>>,
pub config: Value,
}Expand description
Individual mock item in a snapshot
Fields§
§id: StringMock ID
method: StringHTTP method
path: StringPath pattern
status_code: u16Response status code
response_body: ValueResponse body
response_headers: Option<HashMap<String, String>>Response headers
config: ValueMock configuration
Trait Implementations§
Source§impl Clone for MockSnapshotItem
impl Clone for MockSnapshotItem
Source§impl Debug for MockSnapshotItem
impl Debug for MockSnapshotItem
Source§impl<'de> Deserialize<'de> for MockSnapshotItem
impl<'de> Deserialize<'de> for MockSnapshotItem
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 MockSnapshotItem
impl RefUnwindSafe for MockSnapshotItem
impl Send for MockSnapshotItem
impl Sync for MockSnapshotItem
impl Unpin for MockSnapshotItem
impl UnsafeUnpin for MockSnapshotItem
impl UnwindSafe for MockSnapshotItem
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