pub struct ImportClaimVersion {Show 20 fields
pub claim_id: ClaimId,
pub claim_version_id: ClaimVersionId,
pub claim_state: ClaimState,
pub projection_family: String,
pub subject_entity_id: EntityId,
pub predicate: String,
pub object_anchor: Value,
pub scope_key: ScopeKey,
pub valid_from: Option<String>,
pub valid_to: Option<String>,
pub preferred_open: bool,
pub source_envelope_id: EnvelopeId,
pub source_authority: String,
pub trace_ctx: Option<TraceCtx>,
pub freshness: ProjectionFreshness,
pub contradiction_status: ContradictionStatus,
pub supersedes_claim_version_id: Option<ClaimVersionId>,
pub content: String,
pub confidence: f32,
pub metadata: Option<Value>,
}Expand description
A claim projection version ready for import.
§Required fields (from MASTER_SUPPORTING_DELTA §5.1 and spec)
All fields listed here are mandatory in the storage model. Optional
fields are explicitly marked with Option<>.
Fields§
§claim_id: ClaimIdClaim identity (stable across versions).
claim_version_id: ClaimVersionIdVersion identity (unique per mutation).
claim_state: ClaimStateCurrent state of this claim version.
projection_family: StringProjection family (e.g. “forge_verification”).
subject_entity_id: EntityIdThe entity this claim is about.
predicate: StringThe predicate.
object_anchor: ValueThe object anchor.
scope_key: ScopeKeyTarget scope.
valid_from: Option<String>Validity start (ISO 8601).
valid_to: Option<String>Validity end (ISO 8601). None = open-ended.
preferred_open: boolWhether this is the preferred open version for its logical key.
source_envelope_id: EnvelopeIdSource envelope provenance.
Source authority.
trace_ctx: Option<TraceCtx>Trace context.
freshness: ProjectionFreshnessFreshness status.
contradiction_status: ContradictionStatusContradiction status.
supersedes_claim_version_id: Option<ClaimVersionId>Which previous version this supersedes, if any.
content: StringThe content text for embedding/search.
confidence: f32Source confidence.
metadata: Option<Value>Additional metadata.
Trait Implementations§
Source§impl Clone for ImportClaimVersion
impl Clone for ImportClaimVersion
Source§fn clone(&self) -> ImportClaimVersion
fn clone(&self) -> ImportClaimVersion
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 ImportClaimVersion
impl Debug for ImportClaimVersion
Source§impl<'de> Deserialize<'de> for ImportClaimVersion
impl<'de> Deserialize<'de> for ImportClaimVersion
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 JsonSchema for ImportClaimVersion
impl JsonSchema for ImportClaimVersion
Source§fn schema_name() -> String
fn schema_name() -> String
The name of the generated JSON Schema. Read more
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn is_referenceable() -> bool
fn is_referenceable() -> bool
Whether JSON Schemas generated for this type should be re-used where possible using the
$ref keyword. Read moreAuto Trait Implementations§
impl Freeze for ImportClaimVersion
impl RefUnwindSafe for ImportClaimVersion
impl Send for ImportClaimVersion
impl Sync for ImportClaimVersion
impl Unpin for ImportClaimVersion
impl UnsafeUnpin for ImportClaimVersion
impl UnwindSafe for ImportClaimVersion
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