Struct ruarango::graph::EdgeDefinitionBuilder
source · 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 copy 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 more