pub struct Path { /* private fields */ }
Expand description
Alternating sequence of nodes and relationships
Implementations§
source§impl Path
impl Path
pub fn new(inner: BoltPath) -> Self
pub fn ids(&self) -> Vec<i64>
👎Deprecated since 0.7.0: Please use
indices
instead.pub fn indices(&self) -> Vec<i64>
pub fn nodes(&self) -> Vec<Node>
pub fn rels(&self) -> Vec<UnboundedRelation>
sourcepub fn to<'this, T>(&'this self) -> Result<T, DeError>where
T: Deserialize<'this>,
pub fn to<'this, T>(&'this self) -> Result<T, DeError>where
T: Deserialize<'this>,
Deserialize the path into a custom type that implements serde::Deserialize
sourcepub fn nodes_as<'this, T>(&'this self) -> Result<Vec<T>, DeError>where
T: Deserialize<'this>,
pub fn nodes_as<'this, T>(&'this self) -> Result<Vec<T>, DeError>where
T: Deserialize<'this>,
Deserialize the nodes of this path into custom type that implements serde::Deserialize
sourcepub fn relationships_as<'this, T>(&'this self) -> Result<Vec<T>, DeError>where
T: Deserialize<'this>,
pub fn relationships_as<'this, T>(&'this self) -> Result<Vec<T>, DeError>where
T: Deserialize<'this>,
Deserialize the relationships of this path into custom type that implements serde::Deserialize
sourcepub fn indices_as<'this, T>(&'this self) -> Result<Vec<T>, DeError>where
T: Deserialize<'this>,
pub fn indices_as<'this, T>(&'this self) -> Result<Vec<T>, DeError>where
T: Deserialize<'this>,
Deserialize the indices of this path into a custom type that implements serde::Deserialize
Trait Implementations§
source§impl<'de> Deserialize<'de> for Path
impl<'de> Deserialize<'de> for Path
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 PartialEq for Path
impl PartialEq for Path
impl StructuralPartialEq for Path
Auto Trait Implementations§
impl RefUnwindSafe for Path
impl Send for Path
impl Sync for Path
impl Unpin for Path
impl UnwindSafe for Path
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