pub struct RelationDeserializer<'a> { /* private fields */ }Expand description
Extract typed values from a parsed JSON array row.
Implementations§
Source§impl<'a> RelationDeserializer<'a>
impl<'a> RelationDeserializer<'a>
Sourcepub fn get<T: DeserializeOwned>(&self, index: usize) -> Result<T, DbCoreError>
pub fn get<T: DeserializeOwned>(&self, index: usize) -> Result<T, DbCoreError>
Extract a typed value at the given index.
§Errors
Returns DbCoreError::RowMapping when index is out of range or the value cannot be
deserialized to T.
Auto Trait Implementations§
impl<'a> Freeze for RelationDeserializer<'a>
impl<'a> RefUnwindSafe for RelationDeserializer<'a>
impl<'a> Send for RelationDeserializer<'a>
impl<'a> Sync for RelationDeserializer<'a>
impl<'a> Unpin for RelationDeserializer<'a>
impl<'a> UnsafeUnpin for RelationDeserializer<'a>
impl<'a> UnwindSafe for RelationDeserializer<'a>
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