pub struct Relation {
pub name: String,
pub description: Option<String>,
pub from: String,
pub to: String,
pub unique: bool,
pub fields: Vec<Field>,
}Expand description
Fields§
§name: StringRelation name (e.g. "derivedFrom").
description: Option<String>Optional documentation string (description="...").
from: StringThe record name at the in end of the edge.
to: StringThe record name at the out end of the edge.
unique: boolWhether each (from, to) pair must be unique.
fields: Vec<Field>Edge-property fields in source order.
Trait Implementations§
impl Eq for Relation
impl StructuralPartialEq for Relation
Auto Trait Implementations§
impl Freeze for Relation
impl RefUnwindSafe for Relation
impl Send for Relation
impl Sync for Relation
impl Unpin for Relation
impl UnsafeUnpin for Relation
impl UnwindSafe for Relation
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