pub struct GraphSchema {
pub name: String,
/* private fields */
}Expand description
Complete graph schema definition
Fields§
§name: StringImplementations§
Source§impl GraphSchema
impl GraphSchema
pub fn new(name: impl Into<String>) -> Self
pub fn node_type(self, node_type: NodeType) -> Self
pub fn edge_type(self, edge_type: EdgeType) -> Self
pub fn connected(self) -> Self
pub fn no_orphans(self) -> Self
pub fn max_depth(self, depth: usize) -> Self
Sourcepub fn validate(&self, graph: &ISONGraph) -> ValidationResult
pub fn validate(&self, graph: &ISONGraph) -> ValidationResult
Validate a graph against this schema
Auto Trait Implementations§
impl !RefUnwindSafe for GraphSchema
impl !UnwindSafe for GraphSchema
impl Freeze for GraphSchema
impl Send for GraphSchema
impl Sync for GraphSchema
impl Unpin for GraphSchema
impl UnsafeUnpin for GraphSchema
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