pub struct RelDecl {
pub name: SmolStr,
pub start_labels: Vec<SmolStr>,
pub end_labels: Vec<SmolStr>,
pub properties: Vec<PropertyDecl>,
}Expand description
A declared relationship type. The file-format counterpart to
EndpointDecl: one rel type may permit many (start, end) label
pairings, all at many-to-many at v0 (spec 0002 §6).
Fields§
§name: SmolStrRelationship type name (e.g. KNOWS).
start_labels: Vec<SmolStr>Allowed source labels. Empty = polymorphic (any label).
end_labels: Vec<SmolStr>Allowed target labels. Empty = polymorphic (any label).
properties: Vec<PropertyDecl>Properties declared on the relationship.
Trait Implementations§
impl Eq for RelDecl
impl StructuralPartialEq for RelDecl
Auto Trait Implementations§
impl Freeze for RelDecl
impl RefUnwindSafe for RelDecl
impl Send for RelDecl
impl Sync for RelDecl
impl Unpin for RelDecl
impl UnsafeUnpin for RelDecl
impl UnwindSafe for RelDecl
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.