pub struct Node { /* private fields */ }
Expand description
Snapshot of a node within a graph database
Implementations§
source§impl Node
impl Node
pub fn new(inner: BoltNode) -> Self
sourcepub fn get<'this, T>(&'this self, key: &str) -> Result<T, DeError>where
T: Deserialize<'this>,
pub fn get<'this, T>(&'this self, key: &str) -> Result<T, DeError>where
T: Deserialize<'this>,
Get an attribute of this node and deserialize it into custom type that implements serde::Deserialize
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 node into custom type that implements serde::Deserialize
Trait Implementations§
source§impl<'de> Deserialize<'de> for Node
impl<'de> Deserialize<'de> for Node
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 Node
impl PartialEq for Node
impl StructuralPartialEq for Node
Auto Trait Implementations§
impl RefUnwindSafe for Node
impl Send for Node
impl Sync for Node
impl Unpin for Node
impl UnwindSafe for Node
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