Struct diesel::pg::FailedToLookupTypeError
source · pub struct FailedToLookupTypeError(/* private fields */);
Expand description
This error indicates that a type lookup for a custom postgres type failed
Implementations§
source§impl 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§
source§impl Clone for FailedToLookupTypeError
impl Clone for FailedToLookupTypeError
source§fn clone(&self) -> FailedToLookupTypeError
fn clone(&self) -> FailedToLookupTypeError
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for FailedToLookupTypeError
impl Debug for FailedToLookupTypeError
source§impl Display for FailedToLookupTypeError
impl Display for FailedToLookupTypeError
source§impl Error for FailedToLookupTypeError
impl Error for FailedToLookupTypeError
1.30.0 · source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
1.0.0 · source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
source§impl Hash for FailedToLookupTypeError
impl Hash for FailedToLookupTypeError
source§impl PartialEq<FailedToLookupTypeError> for FailedToLookupTypeError
impl PartialEq<FailedToLookupTypeError> for FailedToLookupTypeError
source§fn 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 ==
.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§
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> IntoSql for T
impl<T> IntoSql for T
source§fn 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 moresource§fn 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