pub struct PostgresRow<'a> { /* private fields */ }Expand description
A native row view borrowing the connection’s cached column labels.
Trait Implementations§
Source§impl Debug for PostgresRow<'_>
impl Debug for PostgresRow<'_>
Source§impl Row for PostgresRow<'_>
impl Row for PostgresRow<'_>
Source§fn value(&self, index: usize) -> Option<Cow<'_, Value<'_>>>
fn value(&self, index: usize) -> Option<Cow<'_, Value<'_>>>
Borrows a stored value or returns a freshly decoded value.
SQL NULL is a
Value; None means no value at this index.fn is_empty(&self) -> bool
fn get_column(&self, name: &str) -> Option<Cow<'_, Value<'_>>>
Source§fn values(&self) -> impl Iterator<Item = Cow<'_, Value<'_>>>
fn values(&self) -> impl Iterator<Item = Cow<'_, Value<'_>>>
Iterates values without cloning stored payloads, stopping at a missing cell.
fn iter(&self) -> impl Iterator<Item = (&str, Cow<'_, Value<'_>>)>
Auto Trait Implementations§
impl<'a> !Freeze for PostgresRow<'a>
impl<'a> !RefUnwindSafe for PostgresRow<'a>
impl<'a> !UnwindSafe for PostgresRow<'a>
impl<'a> Send for PostgresRow<'a>
impl<'a> Sync for PostgresRow<'a>
impl<'a> Unpin for PostgresRow<'a>
impl<'a> UnsafeUnpin for PostgresRow<'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