pub struct EdgeType {
pub name: String,
/* private fields */
}Expand description
Schema definition for an edge/relationship type
Fields§
§name: StringImplementations§
Source§impl EdgeType
impl EdgeType
pub fn new(name: impl Into<String>) -> Self
pub fn from_node(self, node_type: impl Into<String>) -> Self
pub fn to_node(self, node_type: impl Into<String>) -> Self
pub fn field<V: FieldValidator + 'static>( self, name: impl Into<String>, validator: V, ) -> Self
pub fn no_self_loop(self) -> Self
pub fn unique(self) -> Self
pub fn acyclic(self) -> Self
pub fn bidirectional(self) -> Self
pub fn cardinality(self, card: Cardinality) -> Self
pub fn is_unique(&self) -> bool
pub fn is_acyclic(&self) -> bool
pub fn is_bidirectional(&self) -> bool
pub fn cardinality_constraint(&self) -> Option<Cardinality>
pub fn validate_edge(&self, edge: &Edge, graph: &ISONGraph) -> ValidationResult
Auto Trait Implementations§
impl !RefUnwindSafe for EdgeType
impl !UnwindSafe for EdgeType
impl Freeze for EdgeType
impl Send for EdgeType
impl Sync for EdgeType
impl Unpin for EdgeType
impl UnsafeUnpin for EdgeType
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