pub struct TruthDefinition {
pub key: String,
pub kind: TruthKind,
pub summary: String,
pub success_criteria: Vec<Criterion>,
pub constraints: Vec<TypesIntentConstraint>,
pub approval_points: Vec<String>,
pub participating_packs: Vec<String>,
}Expand description
Portable truth definition.
Fields§
§key: StringStable truth identifier.
kind: TruthKindTruth class.
summary: StringHuman-readable summary.
success_criteria: Vec<Criterion>Required or optional success criteria.
constraints: Vec<TypesIntentConstraint>Hard and soft constraints derived from the truth.
approval_points: Vec<String>Human approval points that the runtime must respect.
participating_packs: Vec<String>Which packs should participate when this truth is active.
Trait Implementations§
Source§impl Clone for TruthDefinition
impl Clone for TruthDefinition
Source§fn clone(&self) -> TruthDefinition
fn clone(&self) -> TruthDefinition
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 TruthDefinition
impl Debug for TruthDefinition
Source§impl<'de> Deserialize<'de> for TruthDefinition
impl<'de> Deserialize<'de> for TruthDefinition
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 TruthDefinition
impl RefUnwindSafe for TruthDefinition
impl Send for TruthDefinition
impl Sync for TruthDefinition
impl Unpin for TruthDefinition
impl UnsafeUnpin for TruthDefinition
impl UnwindSafe for TruthDefinition
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