pub struct Row { /* private fields */ }
Expand description
Represents a row returned as a result of executing a query.
A row is very similar to a HashMap
, you can get the attributes using Row::get
method.
Implementations§
source§impl Row
impl Row
pub fn new(fields: BoltList, data: BoltList) -> 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 relationship and deserialize it into custom type that implements serde::Deserialize
pub fn to<'this, T>(&'this self) -> Result<T, DeError>where
T: Deserialize<'this>,
pub fn to_strict<'this, T>(&'this self) -> Result<T, DeError>where
T: Deserialize<'this>,
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for Row
impl Send for Row
impl Sync for Row
impl Unpin for Row
impl UnwindSafe for Row
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