pub struct SimpleQueryRow { /* private fields */ }Expand description
A single row from the simple query protocol.
All column values are in PostgreSQL text format. NULL values are
represented as None.
Implementations§
Source§impl SimpleQueryRow
impl SimpleQueryRow
pub fn new(columns: Vec<Option<String>>) -> Self
Sourcepub fn get(&self, idx: usize) -> Option<&str>
pub fn get(&self, idx: usize) -> Option<&str>
Get a column value by index. Returns None for NULL.
Trait Implementations§
Source§impl Clone for SimpleQueryRow
impl Clone for SimpleQueryRow
Source§fn clone(&self) -> SimpleQueryRow
fn clone(&self) -> SimpleQueryRow
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for SimpleQueryRow
impl RefUnwindSafe for SimpleQueryRow
impl Send for SimpleQueryRow
impl Sync for SimpleQueryRow
impl Unpin for SimpleQueryRow
impl UnsafeUnpin for SimpleQueryRow
impl UnwindSafe for SimpleQueryRow
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