pub struct Row<'a> { /* private fields */ }Implementations§
Source§impl<'a> Row<'a>
impl<'a> Row<'a>
pub fn from_pg(row: &'a PgRow) -> Self
pub fn get_i32(&self, col: &str) -> Result<i32>
pub fn get_i64(&self, col: &str) -> Result<i64>
pub fn get_optional_i64(&self, col: &str) -> Result<Option<i64>>
pub fn get_bool(&self, col: &str) -> Result<bool>
pub fn get_string(&self, col: &str) -> Result<String>
pub fn get_optional_string(&self, col: &str) -> Result<Option<String>>
pub fn get_datetime(&self, col: &str) -> Result<DateTime<Utc>>
pub fn get_optional_datetime(&self, col: &str) -> Result<Option<DateTime<Utc>>>
pub fn get_uuid(&self, col: &str) -> Result<Uuid>
pub fn get_json(&self, col: &str) -> Result<JsonValue>
Auto Trait Implementations§
impl<'a> Freeze for Row<'a>
impl<'a> RefUnwindSafe for Row<'a>
impl<'a> Send for Row<'a>
impl<'a> Sync for Row<'a>
impl<'a> Unpin for Row<'a>
impl<'a> UnsafeUnpin for Row<'a>
impl<'a> UnwindSafe for Row<'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
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