pub struct ImportRelationVersion {Show 19 fields
pub relation_version_id: RelationVersionId,
pub subject_entity_id: EntityId,
pub predicate: String,
pub object_anchor: Value,
pub scope_key: ScopeKey,
pub claim_id: Option<ClaimId>,
pub source_episode_id: Option<EpisodeId>,
pub valid_from: Option<String>,
pub valid_to: Option<String>,
pub preferred_open: bool,
pub supersedes_relation_version_id: Option<RelationVersionId>,
pub contradiction_status: ContradictionStatus,
pub source_confidence: f32,
pub projection_family: String,
pub source_envelope_id: EnvelopeId,
pub source_authority: String,
pub trace_ctx: Option<TraceCtx>,
pub freshness: ProjectionFreshness,
pub metadata: Option<Value>,
}Expand description
A relation version ready for import.
Preserves audit-grade metadata parity with claim versions (MASTER_SUPPORTING_DELTA §5.2).
Fields§
§relation_version_id: RelationVersionIdRelation version identity.
subject_entity_id: EntityIdThe subject entity.
predicate: StringThe relation predicate.
object_anchor: ValueThe object anchor.
scope_key: ScopeKeyTarget scope.
claim_id: Option<ClaimId>Linked claim or episode.
source_episode_id: Option<EpisodeId>§valid_from: Option<String>Validity times.
valid_to: Option<String>§preferred_open: boolPreferred open flag.
supersedes_relation_version_id: Option<RelationVersionId>Which previous version this supersedes.
contradiction_status: ContradictionStatusContradiction status.
source_confidence: f32Source confidence.
projection_family: StringProjection family.
source_envelope_id: EnvelopeIdSource envelope provenance.
Source authority.
trace_ctx: Option<TraceCtx>Trace context.
freshness: ProjectionFreshnessFreshness.
metadata: Option<Value>Additional metadata.
Trait Implementations§
Source§impl Clone for ImportRelationVersion
impl Clone for ImportRelationVersion
Source§fn clone(&self) -> ImportRelationVersion
fn clone(&self) -> ImportRelationVersion
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 ImportRelationVersion
impl Debug for ImportRelationVersion
Source§impl<'de> Deserialize<'de> for ImportRelationVersion
impl<'de> Deserialize<'de> for ImportRelationVersion
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 ImportRelationVersion
impl JsonSchema for ImportRelationVersion
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 ImportRelationVersion
impl RefUnwindSafe for ImportRelationVersion
impl Send for ImportRelationVersion
impl Sync for ImportRelationVersion
impl Unpin for ImportRelationVersion
impl UnsafeUnpin for ImportRelationVersion
impl UnwindSafe for ImportRelationVersion
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