pub struct EdgeDefinitionBuilder { /* private fields */ }Expand description
Builder for EdgeDefinition.
Implementations§
Source§impl EdgeDefinitionBuilder
impl EdgeDefinitionBuilder
Sourcepub fn collection<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
pub fn collection<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
Name of the edge collection, where the edge are stored in.
Sourcepub fn to<VALUE: Into<Vec<String>>>(&mut self, value: VALUE) -> &mut Self
pub fn to<VALUE: Into<Vec<String>>>(&mut self, value: VALUE) -> &mut Self
List of vertex collection names.
Edges in collection can only be inserted if their _to is in
any of the collections here.
Sourcepub fn from(&mut self, value: Vec<String>) -> &mut Self
pub fn from(&mut self, value: Vec<String>) -> &mut Self
List of vertex collection names.
Edges in collection can only be inserted if their _to is in
any of the collections here.
Sourcepub fn build(&self) -> Result<EdgeDefinition, EdgeDefinitionBuilderError>
pub fn build(&self) -> Result<EdgeDefinition, EdgeDefinitionBuilderError>
Trait Implementations§
Source§impl Clone for EdgeDefinitionBuilder
impl Clone for EdgeDefinitionBuilder
Source§fn clone(&self) -> EdgeDefinitionBuilder
fn clone(&self) -> EdgeDefinitionBuilder
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for EdgeDefinitionBuilder
impl RefUnwindSafe for EdgeDefinitionBuilder
impl Send for EdgeDefinitionBuilder
impl Sync for EdgeDefinitionBuilder
impl Unpin for EdgeDefinitionBuilder
impl UnwindSafe for EdgeDefinitionBuilder
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