pub struct CriterionRecord {
pub id: String,
pub criterion: String,
pub evidence: String,
pub reference: String,
}Expand description
One satisfaction criterion as the record declares it: what must be observably true, the kind of evidence that settles it, and what that evidence names.
use majordomus_cli::intent::CriterionRecord;
let c = CriterionRecord {
id: "surfaces-agree".into(),
criterion: "the command line, HTTP and MCP answer the same intents".into(),
evidence: "test".into(),
reference: "apps/majordomus-cli/tests/intent.rs".into(),
};
assert_eq!(c.evidence, "test");Fields§
§id: StringUnique within the intent.
criterion: StringWhat is observably true when the criterion is met.
evidence: Stringtest, claim, command or deployment.
reference: StringWhat the evidence names.
Trait Implementations§
Source§impl Clone for CriterionRecord
impl Clone for CriterionRecord
Source§fn clone(&self) -> CriterionRecord
fn clone(&self) -> CriterionRecord
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 CriterionRecord
impl Debug for CriterionRecord
Source§impl Default for CriterionRecord
impl Default for CriterionRecord
Source§fn default() -> CriterionRecord
fn default() -> CriterionRecord
Returns the “default value” for a type. Read more
impl Eq for CriterionRecord
Source§impl PartialEq for CriterionRecord
impl PartialEq for CriterionRecord
Source§fn eq(&self, other: &CriterionRecord) -> bool
fn eq(&self, other: &CriterionRecord) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for CriterionRecord
Auto Trait Implementations§
impl Freeze for CriterionRecord
impl RefUnwindSafe for CriterionRecord
impl Send for CriterionRecord
impl Sync for CriterionRecord
impl Unpin for CriterionRecord
impl UnsafeUnpin for CriterionRecord
impl UnwindSafe for CriterionRecord
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.