pub struct PgRow { /* private fields */ }
Available on crate feature
postgres
only.Expand description
Implementation of Row
for PostgreSQL.
Trait Implementationsยง
sourceยงimpl ColumnIndex<PgRow> for &str
impl ColumnIndex<PgRow> for &str
sourceยงfn index(&self, row: &PgRow) -> Result<usize, Error>
fn index(&self, row: &PgRow) -> Result<usize, Error>
Returns a valid positional index into the row or statement,
ColumnIndexOutOfBounds
, or,
ColumnNotFound
.sourceยงimpl ColumnIndex<PgRow> for usize
impl ColumnIndex<PgRow> for usize
sourceยงfn index(&self, row: &PgRow) -> Result<usize, Error>
fn index(&self, row: &PgRow) -> Result<usize, Error>
Returns a valid positional index into the row or statement,
ColumnIndexOutOfBounds
, or,
ColumnNotFound
.sourceยงimpl Row for PgRow
impl Row for PgRow
type Database = Postgres
sourceยงfn try_get_raw<I>(&self, index: I) -> Result<PgValueRef<'_>, Error>where
I: ColumnIndex<PgRow>,
fn try_get_raw<I>(&self, index: I) -> Result<PgValueRef<'_>, Error>where
I: ColumnIndex<PgRow>,
Index into the database row and decode a single value. Read more
sourceยงfn column<I>(&self, index: I) -> &<Self::Database as Database>::Columnwhere
I: ColumnIndex<Self>,
fn column<I>(&self, index: I) -> &<Self::Database as Database>::Columnwhere
I: ColumnIndex<Self>,
Gets the column information at
index
. Read moresourceยงfn try_column<I>(
&self,
index: I,
) -> Result<&<Self::Database as Database>::Column, Error>where
I: ColumnIndex<Self>,
fn try_column<I>(
&self,
index: I,
) -> Result<&<Self::Database as Database>::Column, Error>where
I: ColumnIndex<Self>,
Gets the column information at
index
or a ColumnIndexOutOfBounds
error if out of bounds.sourceยงfn get<'r, T, I>(&'r self, index: I) -> T
fn get<'r, T, I>(&'r self, index: I) -> T
Index into the database row and decode a single value. Read more
sourceยงfn get_unchecked<'r, T, I>(&'r self, index: I) -> T
fn get_unchecked<'r, T, I>(&'r self, index: I) -> T
Index into the database row and decode a single value. Read more
sourceยงfn try_get<'r, T, I>(&'r self, index: I) -> Result<T, Error>
fn try_get<'r, T, I>(&'r self, index: I) -> Result<T, Error>
Index into the database row and decode a single value. Read more
Auto Trait Implementationsยง
impl !Freeze for PgRow
impl RefUnwindSafe for PgRow
impl Send for PgRow
impl Sync for PgRow
impl Unpin for PgRow
impl UnwindSafe for PgRow
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
sourceยงimpl<T> Instrument for T
impl<T> Instrument for T
sourceยงfn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourceยงfn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceยงimpl<T> IntoEither for T
impl<T> IntoEither for T
sourceยงfn into_either(self, into_left: bool) -> Either<Self, Self> โ
fn into_either(self, into_left: bool) -> Either<Self, Self> โ
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresourceยงfn into_either_with<F>(self, into_left: F) -> Either<Self, Self> โ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> โ
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more