pub struct FactStateV1 {
pub fact: String,
pub state: FactStateKind,
pub reasons: Vec<FactStateReason>,
pub moved_to: Option<CodeAnchorV1>,
pub contradicted_by: Vec<String>,
pub since: UtcTimestamp,
}Expand description
The state of one fact, as an engine reports it.
Fields§
§fact: String§state: FactStateKindto_verify or contradicted; a report never sends current.
reasons: Vec<FactStateReason>Sorted, without repeats.
moved_to: Option<CodeAnchorV1>With anchor_moved: where the symbol is now.
contradicted_by: Vec<String>With contradiction: the facts that contradict this one.
since: UtcTimestampImplementations§
Source§impl FactStateV1
impl FactStateV1
pub fn validate(&self) -> Result<(), ValidationError>
Trait Implementations§
Source§impl Clone for FactStateV1
impl Clone for FactStateV1
Source§impl Debug for FactStateV1
impl Debug for FactStateV1
Source§impl<'de> Deserialize<'de> for FactStateV1
impl<'de> Deserialize<'de> for FactStateV1
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
impl Eq for FactStateV1
Source§impl PartialEq for FactStateV1
impl PartialEq for FactStateV1
Source§impl Serialize for FactStateV1
impl Serialize for FactStateV1
impl StructuralPartialEq for FactStateV1
Auto Trait Implementations§
impl Forget for FactStateV1
impl Freeze for FactStateV1
impl Move for FactStateV1
impl RefUnwindSafe for FactStateV1
impl Send for FactStateV1
impl Sync for FactStateV1
impl Unpin for FactStateV1
impl UnsafeUnpin for FactStateV1
impl UnwindSafe for FactStateV1
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