pub struct SoftwareStatement {Show 17 fields
pub statement_id: String,
pub subject_id: String,
pub predicate: SoftwarePredicate,
pub object_id: Option<String>,
pub object_value: Option<String>,
pub source_scope: String,
pub source_kind: SoftwareSourceKind,
pub evidence_refs: Vec<SoftwareEvidenceRef>,
pub assertion_mode: SoftwareAssertionMode,
pub resolution_state: SoftwareStatementResolution,
pub valid_from: Option<u64>,
pub valid_to: Option<u64>,
pub observed_at: Option<u64>,
pub extractor_id: String,
pub extractor_version: String,
pub confidence_basis_points: u16,
pub fact_state: SoftwareFactState,
}Expand description
A first-class assertion retaining provenance, time, extraction, and conflict state.
Fields§
§statement_id: String§subject_id: String§predicate: SoftwarePredicate§object_id: Option<String>§object_value: Option<String>§source_scope: String§source_kind: SoftwareSourceKind§evidence_refs: Vec<SoftwareEvidenceRef>§assertion_mode: SoftwareAssertionMode§resolution_state: SoftwareStatementResolution§valid_from: Option<u64>§valid_to: Option<u64>§observed_at: Option<u64>§extractor_id: String§extractor_version: String§confidence_basis_points: u16§fact_state: SoftwareFactStateImplementations§
Source§impl SoftwareStatement
impl SoftwareStatement
Sourcepub fn candidate(input: SoftwareStatementInput) -> Self
pub fn candidate(input: SoftwareStatementInput) -> Self
Builds a candidate identity while leaving shape acceptance to the validator.
Sourcepub fn object_identity(&self) -> Option<&str>
pub fn object_identity(&self) -> Option<&str>
Stable comparison key used to retain competing objects without source precedence.
Trait Implementations§
Source§impl Clone for SoftwareStatement
impl Clone for SoftwareStatement
Source§fn clone(&self) -> SoftwareStatement
fn clone(&self) -> SoftwareStatement
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 SoftwareStatement
impl Debug for SoftwareStatement
Source§impl<'de> Deserialize<'de> for SoftwareStatement
impl<'de> Deserialize<'de> for SoftwareStatement
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 SoftwareStatement
Source§impl PartialEq for SoftwareStatement
impl PartialEq for SoftwareStatement
Source§impl Serialize for SoftwareStatement
impl Serialize for SoftwareStatement
impl StructuralPartialEq for SoftwareStatement
Auto Trait Implementations§
impl Freeze for SoftwareStatement
impl RefUnwindSafe for SoftwareStatement
impl Send for SoftwareStatement
impl Sync for SoftwareStatement
impl Unpin for SoftwareStatement
impl UnsafeUnpin for SoftwareStatement
impl UnwindSafe for SoftwareStatement
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<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.