pub struct DoctrineState {
pub rule: String,
pub source_principle_id: String,
pub force: DoctrineForce,
pub truth_state: TruthState,
}Expand description
Semantic state of one doctrine entry in a snapshot.
Fields§
§rule: StringDoctrine rule text.
source_principle_id: StringId of the principle that generated this doctrine entry.
force: DoctrineForceEnforcement strength of this doctrine entry.
truth_state: TruthStateCurrent truth classification.
Trait Implementations§
Source§impl Clone for DoctrineState
impl Clone for DoctrineState
Source§fn clone(&self) -> DoctrineState
fn clone(&self) -> DoctrineState
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 DoctrineState
impl Debug for DoctrineState
Source§impl<'de> Deserialize<'de> for DoctrineState
impl<'de> Deserialize<'de> for DoctrineState
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 DoctrineState
impl Ord for DoctrineState
Source§fn cmp(&self, other: &DoctrineState) -> Ordering
fn cmp(&self, other: &DoctrineState) -> 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 DoctrineState
impl PartialEq for DoctrineState
Source§fn eq(&self, other: &DoctrineState) -> bool
fn eq(&self, other: &DoctrineState) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for DoctrineState
impl PartialOrd for DoctrineState
Source§impl Serialize for DoctrineState
impl Serialize for DoctrineState
impl Eq for DoctrineState
impl StructuralPartialEq for DoctrineState
Auto Trait Implementations§
impl Freeze for DoctrineState
impl RefUnwindSafe for DoctrineState
impl Send for DoctrineState
impl Sync for DoctrineState
impl Unpin for DoctrineState
impl UnsafeUnpin for DoctrineState
impl UnwindSafe for DoctrineState
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