pub struct SinglePath { /* private fields */ }Expand description
SinglePath in the graph. A SinglePath contains an edge, source and destination.
Implementations§
Source§impl SinglePath
impl SinglePath
Sourcepub fn new(
key: Key,
source: Node,
labels: Vec<String>,
properties: ValueMap,
destination: Node,
) -> SinglePath
pub fn new( key: Key, source: Node, labels: Vec<String>, properties: ValueMap, destination: Node, ) -> SinglePath
Create new single path
Sourcepub fn destination(&self) -> &Node
pub fn destination(&self) -> &Node
uuid for the Node.
Sourcepub fn properties(&self) -> &ValueMap
pub fn properties(&self) -> &ValueMap
Properties.
Sourcepub fn unpack(self) -> (Key, Node, Vec<String>, ValueMap, Node)
pub fn unpack(self) -> (Key, Node, Vec<String>, ValueMap, Node)
Unpack Node 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 Clone for SinglePath
impl Clone for SinglePath
Source§fn clone(&self) -> SinglePath
fn clone(&self) -> SinglePath
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 moreSource§impl Debug for SinglePath
impl Debug for SinglePath
Source§impl Default for SinglePath
impl Default for SinglePath
Source§fn default() -> SinglePath
fn default() -> SinglePath
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for SinglePath
impl<'de> Deserialize<'de> for SinglePath
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 Display for SinglePath
impl Display for SinglePath
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.
Source§impl From<SinglePath> for Value
impl From<SinglePath> for Value
Source§fn from(v: SinglePath) -> Value
fn from(v: SinglePath) -> Value
Converts to this type from the input type.
Source§impl Hash for SinglePath
impl Hash for SinglePath
Source§impl PartialEq for SinglePath
impl PartialEq for SinglePath
Source§impl Serialize for SinglePath
impl Serialize for SinglePath
Source§impl TryFrom<&Value> for SinglePath
impl TryFrom<&Value> for SinglePath
Source§impl TryFrom<Value> for SinglePath
impl TryFrom<Value> for SinglePath
Source§impl ValueTryIntoRef<SinglePath> for Value
impl ValueTryIntoRef<SinglePath> for Value
Source§fn try_into_ref(&self) -> Result<&SinglePath, Error>
fn try_into_ref(&self) -> Result<&SinglePath, Error>
Return a reference to T
impl StructuralPartialEq for SinglePath
Auto Trait Implementations§
impl Freeze for SinglePath
impl RefUnwindSafe for SinglePath
impl Send for SinglePath
impl Sync for SinglePath
impl Unpin for SinglePath
impl UnsafeUnpin for SinglePath
impl UnwindSafe for SinglePath
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,
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