pub struct GraphSchemaBuilder { /* private fields */ }Implementations§
Source§impl GraphSchemaBuilder
impl GraphSchemaBuilder
pub fn node( self, label: impl Into<Label>, fields: impl Into<Vec<Field>>, ) -> Self
pub fn edge( self, label: impl Into<Label>, from: impl Into<Vec<Label>>, to: impl Into<Vec<Label>>, fields: impl Into<Vec<Field>>, ) -> Self
pub fn edge_type(self, edge_type: EdgeType) -> Self
pub fn build(self) -> GraphSchema
Trait Implementations§
Source§impl Clone for GraphSchemaBuilder
impl Clone for GraphSchemaBuilder
Source§fn clone(&self) -> GraphSchemaBuilder
fn clone(&self) -> GraphSchemaBuilder
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for GraphSchemaBuilder
impl Debug for GraphSchemaBuilder
Source§impl Default for GraphSchemaBuilder
impl Default for GraphSchemaBuilder
Source§fn default() -> GraphSchemaBuilder
fn default() -> GraphSchemaBuilder
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for GraphSchemaBuilder
impl RefUnwindSafe for GraphSchemaBuilder
impl Send for GraphSchemaBuilder
impl Sync for GraphSchemaBuilder
impl Unpin for GraphSchemaBuilder
impl UnsafeUnpin for GraphSchemaBuilder
impl UnwindSafe for GraphSchemaBuilder
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