pub struct PostgresRow { /* private fields */ }Expand description
PostgreSQL row implementation
Implementations§
Trait Implementations§
Source§impl DatabaseRow for PostgresRow
impl DatabaseRow for PostgresRow
Source§fn get_by_index(&self, index: usize) -> OrmResult<DatabaseValue>
fn get_by_index(&self, index: usize) -> OrmResult<DatabaseValue>
Get a column value by index
Source§fn get_by_name(&self, name: &str) -> OrmResult<DatabaseValue>
fn get_by_name(&self, name: &str) -> OrmResult<DatabaseValue>
Get a column value by name
Source§fn column_count(&self) -> usize
fn column_count(&self) -> usize
Get column count
Source§fn column_names(&self) -> Vec<String>
fn column_names(&self) -> Vec<String>
Get column names
Auto Trait Implementations§
impl !Freeze for PostgresRow
impl RefUnwindSafe for PostgresRow
impl Send for PostgresRow
impl Sync for PostgresRow
impl Unpin for PostgresRow
impl UnwindSafe for PostgresRow
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<R> DatabaseRowExt for Rwhere
R: DatabaseRow + ?Sized,
impl<R> DatabaseRowExt for Rwhere
R: DatabaseRow + ?Sized,
Source§fn get<T>(&self, column: &str) -> Result<T, ModelError>where
T: for<'de> Deserialize<'de>,
fn get<T>(&self, column: &str) -> Result<T, ModelError>where
T: for<'de> Deserialize<'de>,
Get a typed value from a column (for model deserialization)
Source§fn try_get<T>(&self, column: &str) -> Result<Option<T>, ModelError>where
T: for<'de> Deserialize<'de>,
fn try_get<T>(&self, column: &str) -> Result<Option<T>, ModelError>where
T: for<'de> Deserialize<'de>,
Try to get an optional typed value from a column
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