pub struct MockSnapshot {
pub id: String,
pub timestamp: i64,
pub environment_id: Option<String>,
pub persona_id: Option<String>,
pub scenario_id: Option<String>,
pub reality_level: Option<f64>,
pub mocks: Vec<MockSnapshotItem>,
pub metadata: HashMap<String, Value>,
}Expand description
Snapshot of mock server state at a point in time
Fields§
§id: StringSnapshot ID
timestamp: i64Timestamp when snapshot was taken
environment_id: Option<String>Environment ID (if applicable)
persona_id: Option<String>Persona ID (if applicable)
scenario_id: Option<String>Scenario ID (if applicable)
reality_level: Option<f64>Reality level (0.0-1.0, if applicable)
mocks: Vec<MockSnapshotItem>All mocks in this snapshot
metadata: HashMap<String, Value>Metadata about the snapshot
Trait Implementations§
Source§impl Clone for MockSnapshot
impl Clone for MockSnapshot
Source§impl Debug for MockSnapshot
impl Debug for MockSnapshot
Source§impl<'de> Deserialize<'de> for MockSnapshot
impl<'de> Deserialize<'de> for MockSnapshot
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 MockSnapshot
impl RefUnwindSafe for MockSnapshot
impl Send for MockSnapshot
impl Sync for MockSnapshot
impl Unpin for MockSnapshot
impl UnsafeUnpin for MockSnapshot
impl UnwindSafe for MockSnapshot
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