pub struct ExportRelation {
pub relation_version_id: Option<RelationVersionId>,
pub subject_entity_id: EntityId,
pub predicate: String,
pub object_anchor: Value,
pub valid_from: Option<String>,
pub valid_to: Option<String>,
pub confidence: f32,
pub projection_family: String,
pub source_claim_id: Option<ClaimId>,
pub source_episode_id: Option<EpisodeId>,
pub supersedes_relation_version_id: Option<RelationVersionId>,
pub metadata: Option<Value>,
}Expand description
A relation exported from Forge.
Fields§
§relation_version_id: Option<RelationVersionId>Optional pre-assigned relation version identity.
V2 exporters use this to preserve exact version identity end-to-end. V1 exporters normally leave it unset and let the bridge mint a version.
subject_entity_id: EntityIdThe subject entity.
predicate: StringThe relation predicate (e.g. “depends_on”, “authored_by”).
object_anchor: ValueThe object anchor (typically another entity ID or literal).
valid_from: Option<String>Validity start time (ISO 8601).
valid_to: Option<String>Validity end time (ISO 8601).
confidence: f32Source confidence.
projection_family: StringProjection family.
source_claim_id: Option<ClaimId>Linked claim or episode.
source_episode_id: Option<EpisodeId>§supersedes_relation_version_id: Option<RelationVersionId>Whether this supersedes a previous relation version.
metadata: Option<Value>Additional metadata.
Trait Implementations§
Source§impl Clone for ExportRelation
impl Clone for ExportRelation
Source§fn clone(&self) -> ExportRelation
fn clone(&self) -> ExportRelation
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 ExportRelation
impl Debug for ExportRelation
Source§impl<'de> Deserialize<'de> for ExportRelation
impl<'de> Deserialize<'de> for ExportRelation
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 ExportRelation
impl JsonSchema for ExportRelation
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 ExportRelation
impl RefUnwindSafe for ExportRelation
impl Send for ExportRelation
impl Sync for ExportRelation
impl Unpin for ExportRelation
impl UnsafeUnpin for ExportRelation
impl UnwindSafe for ExportRelation
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