pub enum TryGetError {
DbErr(DbErr),
Null(String),
}
Expand description
An error from trying to get a row from a Model
Variantsยง
DbErr(DbErr)
A database error was encountered as defined in crate::DbErr
Null(String)
A null value was encountered
Trait Implementationsยง
Sourceยงimpl Debug for TryGetError
impl Debug for TryGetError
Sourceยงimpl From<DbErr> for TryGetError
impl From<DbErr> for TryGetError
Sourceยงfn from(e: DbErr) -> TryGetError
fn from(e: DbErr) -> TryGetError
Converts to this type from the input type.
Sourceยงimpl From<TryGetError> for DbErr
impl From<TryGetError> for DbErr
Sourceยงfn from(e: TryGetError) -> DbErr
fn from(e: TryGetError) -> DbErr
Converts to this type from the input type.
Auto Trait Implementationsยง
impl Freeze for TryGetError
impl !RefUnwindSafe for TryGetError
impl Send for TryGetError
impl Sync for TryGetError
impl Unpin for TryGetError
impl !UnwindSafe for TryGetError
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