pub struct Edge { /* private fields */ }Expand description
Directed edge of the graph.
Implementations§
Source§impl Edge
impl Edge
Sourcepub fn new(
graph_name: Option<String>,
key: Key,
labels: Vec<String>,
properties: ValueMap,
) -> Edge
pub fn new( graph_name: Option<String>, key: Key, labels: Vec<String>, properties: ValueMap, ) -> Edge
Create a new node object
Sourcepub fn graph_name(&self) -> &Option<String>
pub fn graph_name(&self) -> &Option<String>
Name of the graph that contains the path
Sourcepub fn with_graph_name(self, graph_name: impl Into<String>) -> Self
pub fn with_graph_name(self, graph_name: impl Into<String>) -> Self
Set the graph name
Sourcepub fn labels_mut(&mut self) -> &mut Vec<String>
pub fn labels_mut(&mut self) -> &mut Vec<String>
Mutable labels
Sourcepub fn properties(&self) -> &ValueMap
pub fn properties(&self) -> &ValueMap
Properties.
Sourcepub fn properties_mut(&mut self) -> &mut ValueMap
pub fn properties_mut(&mut self) -> &mut ValueMap
Properties.
Sourcepub fn take_properties(self) -> ValueMap
pub fn take_properties(self) -> ValueMap
Properties.
Sourcepub fn unpack(self) -> (Option<String>, Key, Vec<String>, ValueMap)
pub fn unpack(self) -> (Option<String>, Key, Vec<String>, ValueMap)
Unpack Edge in key, labels and properties.
Sourcepub fn into_value_map(self) -> ValueMap
pub fn into_value_map(self) -> ValueMap
Convert into value map representation
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Edge
impl<'de> Deserialize<'de> for Edge
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<Box<SinglePath>> for Edge
impl From<Box<SinglePath>> for Edge
Source§fn from(val: Box<SinglePath>) -> Self
fn from(val: Box<SinglePath>) -> Self
Converts to this type from the input type.
Source§impl From<SinglePath> for Edge
impl From<SinglePath> for Edge
Source§fn from(val: SinglePath) -> Self
fn from(val: SinglePath) -> Self
Converts to this type from the input type.
impl StructuralPartialEq for Edge
Auto Trait Implementations§
impl Forget for Edge
impl Freeze for Edge
impl Move for Edge
impl RefUnwindSafe for Edge
impl Send for Edge
impl Sync for Edge
impl Unpin for Edge
impl UnsafeUnpin for Edge
impl UnwindSafe for Edge
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more