Struct diesel::pg::FailedToLookupTypeError
source · [−]pub struct FailedToLookupTypeError(_);
Available on crate features
postgres_backend
and i-implement-a-third-party-backend-and-opt-into-breaking-changes
only.Expand description
This error indicates that a type lookup for a custom postgres type failed
Implementations
sourceimpl FailedToLookupTypeError
impl FailedToLookupTypeError
sourcepub fn new(cache_key: PgMetadataCacheKey<'static>) -> Self
pub fn new(cache_key: PgMetadataCacheKey<'static>) -> Self
Construct a new instance of this error type containing information about which type lookup failed
Trait Implementations
sourceimpl Clone for FailedToLookupTypeError
impl Clone for FailedToLookupTypeError
sourcefn clone(&self) -> FailedToLookupTypeError
fn clone(&self) -> FailedToLookupTypeError
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for FailedToLookupTypeError
impl Debug for FailedToLookupTypeError
sourceimpl Display for FailedToLookupTypeError
impl Display for FailedToLookupTypeError
sourceimpl Error for FailedToLookupTypeError
impl Error for FailedToLookupTypeError
1.30.0 · sourcefn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
sourcefn backtrace(&self) -> Option<&Backtrace>
fn backtrace(&self) -> Option<&Backtrace>
🔬 This is a nightly-only experimental API. (
backtrace
)Returns a stack backtrace, if available, of where this error occurred. Read more
1.0.0 · sourcefn description(&self) -> &str
fn description(&self) -> &str
👎 Deprecated since 1.42.0:
use the Display impl or to_string()
sourceimpl Hash for FailedToLookupTypeError
impl Hash for FailedToLookupTypeError
sourceimpl PartialEq<FailedToLookupTypeError> for FailedToLookupTypeError
impl PartialEq<FailedToLookupTypeError> for FailedToLookupTypeError
sourcefn eq(&self, other: &FailedToLookupTypeError) -> bool
fn eq(&self, other: &FailedToLookupTypeError) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &FailedToLookupTypeError) -> bool
fn ne(&self, other: &FailedToLookupTypeError) -> bool
This method tests for !=
.
impl Eq for FailedToLookupTypeError
impl StructuralEq for FailedToLookupTypeError
impl StructuralPartialEq for FailedToLookupTypeError
Auto Trait Implementations
impl RefUnwindSafe for FailedToLookupTypeError
impl Send for FailedToLookupTypeError
impl Sync for FailedToLookupTypeError
impl Unpin for FailedToLookupTypeError
impl UnwindSafe for FailedToLookupTypeError
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> IntoSql for T
impl<T> IntoSql for T
sourcefn into_sql<T>(self) -> AsExprOf<Self, T> where
Self: AsExpression<T> + Sized,
T: SqlType + TypedExpressionType,
fn into_sql<T>(self) -> AsExprOf<Self, T> where
Self: AsExpression<T> + Sized,
T: SqlType + TypedExpressionType,
Convert self
to an expression for Diesel’s query builder. Read more
sourcefn as_sql<'a, T>(&'a self) -> AsExprOf<&'a Self, T> where
&'a Self: AsExpression<T>,
T: SqlType + TypedExpressionType,
fn as_sql<'a, T>(&'a self) -> AsExprOf<&'a Self, T> where
&'a Self: AsExpression<T>,
T: SqlType + TypedExpressionType,
Convert &self
to an expression for Diesel’s query builder. Read more