pub struct ExportedEdge {
pub edge_id: Uuid,
pub source: Uuid,
pub target: Uuid,
pub relation: EdgeRelation,
pub weight: f64,
}Expand description
A directed edge record in the portable archive.
Fields§
§edge_id: UuidStable edge identity across export/import cycles (ADR-048 D1).
Old archives (pre-0.2) omit this field. serde(default) assigns a fresh
UUID on import so backward-compatible archives are accepted as-is.
source: Uuid§target: Uuid§relation: EdgeRelationOne of the 13 canonical relations defined in ADR-002.
weight: f64Trait Implementations§
Source§impl Clone for ExportedEdge
impl Clone for ExportedEdge
Source§fn clone(&self) -> ExportedEdge
fn clone(&self) -> ExportedEdge
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 ExportedEdge
impl Debug for ExportedEdge
Source§impl<'de> Deserialize<'de> for ExportedEdge
impl<'de> Deserialize<'de> for ExportedEdge
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 ExportedEdge
impl RefUnwindSafe for ExportedEdge
impl Send for ExportedEdge
impl Sync for ExportedEdge
impl Unpin for ExportedEdge
impl UnsafeUnpin for ExportedEdge
impl UnwindSafe for ExportedEdge
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