pub struct Row { /* private fields */ }Implementations§
Source§impl Row
impl Row
pub fn new() -> Self
pub fn add(&mut self, name: impl Into<String>, value: Value)
pub fn column_names(&self) -> &[String]
pub fn raw(&self, name: &str) -> Option<&Value>
pub fn len(&self) -> usize
pub fn is_empty(&self) -> bool
pub fn get<T: FromColumn>(&self, name: &str) -> Result<T, ColumnLookupError>
pub fn try_get<T: FromColumn>( &self, name: &str, ) -> Result<Option<T>, ColumnLookupError>
Trait Implementations§
impl StructuralPartialEq for Row
Auto Trait Implementations§
impl Forget for Row
impl Freeze for Row
impl Move for Row
impl RefUnwindSafe for Row
impl Send for Row
impl Sync for Row
impl Unpin for Row
impl UnsafeUnpin for Rowwhere
*const LeafNode<String, Value> is !null: UnsafeUnpin,
PhantomData<(Owned, LeafOrInternal)>: UnsafeUnpin,
PhantomData<Box<(String, Value)>>: UnsafeUnpin,
*const u8 is !null: UnsafeUnpin,
PhantomData<String>: UnsafeUnpin,
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