pub struct Assertion {
pub id: String,
pub statement: String,
pub check: AssertionCheck,
pub command: Option<String>,
pub pty_script: Option<PtyScript>,
pub negative_control: Option<ControlSpec>,
}Fields§
§id: String§statement: StringBehavioural, testable statement.
check: AssertionCheck§command: Option<String>§pty_script: Option<PtyScript>The scripted terminal session when check is pty-script
(AssertionCheck::PtyScript); ignored for every other check.
Additive: None in every pre-field contract, and
skip_serializing_if keeps old plans byte-identical.
negative_control: Option<ControlSpec>Explicit, approval-pinned valid/defective controls for this command. Absent in legacy plans; controls produce advisory evidence only.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Assertion
impl<'de> Deserialize<'de> for Assertion
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 Assertion
impl RefUnwindSafe for Assertion
impl Send for Assertion
impl Sync for Assertion
impl Unpin for Assertion
impl UnsafeUnpin for Assertion
impl UnwindSafe for Assertion
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