pub struct Link {
pub kind: String,
pub to: String,
pub key: Option<String>,
pub fields: Fields,
}Expand description
A typed, directed edge. It is stored on the node it starts from; the target is only an id. Holding an id (a String) instead of a reference to the target Node avoids self-referential structs, which Rust’s ownership rules make painful.
Fields§
§kind: StringThe link type. The spec calls this type, which is a reserved word in Rust.
to: StringId of the target node.
key: Option<String>An optional key the file gave this link.
fields: FieldsExtra data carried on the link.
Trait Implementations§
impl StructuralPartialEq for Link
Auto Trait Implementations§
impl Freeze for Link
impl RefUnwindSafe for Link
impl Send for Link
impl Sync for Link
impl Unpin for Link
impl UnsafeUnpin for Link
impl UnwindSafe for Link
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