pub struct PrincipleState {
pub title: String,
pub truth_state: TruthState,
pub supporting_memory_ids: BTreeSet<String>,
}Expand description
Semantic state of one principle in a snapshot.
Fields§
§title: StringPrinciple title or statement.
truth_state: TruthStateCurrent truth classification.
supporting_memory_ids: BTreeSet<String>Memory ids that support this principle.
Trait Implementations§
Source§impl Clone for PrincipleState
impl Clone for PrincipleState
Source§fn clone(&self) -> PrincipleState
fn clone(&self) -> PrincipleState
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 PrincipleState
impl Debug for PrincipleState
Source§impl<'de> Deserialize<'de> for PrincipleState
impl<'de> Deserialize<'de> for PrincipleState
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
Source§impl Ord for PrincipleState
impl Ord for PrincipleState
Source§fn cmp(&self, other: &PrincipleState) -> Ordering
fn cmp(&self, other: &PrincipleState) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for PrincipleState
impl PartialEq for PrincipleState
Source§fn eq(&self, other: &PrincipleState) -> bool
fn eq(&self, other: &PrincipleState) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for PrincipleState
impl PartialOrd for PrincipleState
Source§impl Serialize for PrincipleState
impl Serialize for PrincipleState
impl Eq for PrincipleState
impl StructuralPartialEq for PrincipleState
Auto Trait Implementations§
impl Freeze for PrincipleState
impl RefUnwindSafe for PrincipleState
impl Send for PrincipleState
impl Sync for PrincipleState
impl Unpin for PrincipleState
impl UnsafeUnpin for PrincipleState
impl UnwindSafe for PrincipleState
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