pub struct Claim {
pub id: String,
pub predicate: String,
pub value: Value,
pub evidence: Option<Vec<String>>,
pub valid_from: Option<String>,
pub valid_until: Option<Option<String>>,
pub confidence: Confidence,
}Expand description
An asserted fact about the entity.
Fields§
§id: StringLocal identifier unique within this document (kebab-case).
predicate: StringSchema.org property name OR aeo:<name> namespaced predicate.
value: ValueThe asserted value. May be any JSON value.
evidence: Option<Vec<String>>Optional sources backing the claim.
valid_from: Option<String>Optional ISO-8601 date the claim became true.
valid_until: Option<Option<String>>Optional ISO-8601 date the claim ceases to be true (or null for ongoing).
confidence: ConfidenceConfidence level for the claim. Defaults to high.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Claim
impl<'de> Deserialize<'de> for Claim
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 Claim
impl RefUnwindSafe for Claim
impl Send for Claim
impl Sync for Claim
impl Unpin for Claim
impl UnsafeUnpin for Claim
impl UnwindSafe for Claim
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