pub struct EnvironmentState {
pub name: String,
pub state: Value,
}Expand description
Named snapshot of an environment state produced by a StateCapture.
Used with EvalCase::expected_environment_state to assert that after the
agent completes, the captured environment matches the expected values via
full JSON equality (FR-013, FR-015).
Fields§
§name: StringIdentifier for this state entry. Duplicate names within a single
expected_environment_state are rejected at case-load time
(FR-015, SC-009).
state: ValueExpected (or captured) JSON value; compared for full JSON equality.
Trait Implementations§
Source§impl Clone for EnvironmentState
impl Clone for EnvironmentState
Source§fn clone(&self) -> EnvironmentState
fn clone(&self) -> EnvironmentState
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 EnvironmentState
impl Debug for EnvironmentState
Source§impl<'de> Deserialize<'de> for EnvironmentState
impl<'de> Deserialize<'de> for EnvironmentState
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 EnvironmentState
impl RefUnwindSafe for EnvironmentState
impl Send for EnvironmentState
impl Sync for EnvironmentState
impl Unpin for EnvironmentState
impl UnsafeUnpin for EnvironmentState
impl UnwindSafe for EnvironmentState
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