Struct diesel::pg::PgMetadataCacheKey
source · pub struct PgMetadataCacheKey<'a> { /* private fields */ }
Available on crate features
postgres_backend
and i-implement-a-third-party-backend-and-opt-into-breaking-changes
only.Expand description
The key used to lookup cached type oid’s inside of a PgMetadataCache.
Implementations§
source§impl<'a> PgMetadataCacheKey<'a>
impl<'a> PgMetadataCacheKey<'a>
sourcepub fn new(schema: Option<Cow<'a, str>>, type_name: Cow<'a, str>) -> Self
pub fn new(schema: Option<Cow<'a, str>>, type_name: Cow<'a, str>) -> Self
Construct a new cache key from an optional schema name and a type name
sourcepub fn into_owned(self) -> PgMetadataCacheKey<'static>
pub fn into_owned(self) -> PgMetadataCacheKey<'static>
Convert the possibly borrowed version of this metadata cache key into a lifetime independ owned version
Trait Implementations§
source§impl<'a> Clone for PgMetadataCacheKey<'a>
impl<'a> Clone for PgMetadataCacheKey<'a>
source§fn clone(&self) -> PgMetadataCacheKey<'a>
fn clone(&self) -> PgMetadataCacheKey<'a>
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<'a> Debug for PgMetadataCacheKey<'a>
impl<'a> Debug for PgMetadataCacheKey<'a>
source§impl<'a> Hash for PgMetadataCacheKey<'a>
impl<'a> Hash for PgMetadataCacheKey<'a>
source§impl<'a> PartialEq<PgMetadataCacheKey<'a>> for PgMetadataCacheKey<'a>
impl<'a> PartialEq<PgMetadataCacheKey<'a>> for PgMetadataCacheKey<'a>
source§fn eq(&self, other: &PgMetadataCacheKey<'a>) -> bool
fn eq(&self, other: &PgMetadataCacheKey<'a>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl<'a> Eq for PgMetadataCacheKey<'a>
impl<'a> StructuralEq for PgMetadataCacheKey<'a>
impl<'a> StructuralPartialEq for PgMetadataCacheKey<'a>
Auto Trait Implementations§
impl<'a> RefUnwindSafe for PgMetadataCacheKey<'a>
impl<'a> Send for PgMetadataCacheKey<'a>
impl<'a> Sync for PgMetadataCacheKey<'a>
impl<'a> Unpin for PgMetadataCacheKey<'a>
impl<'a> UnwindSafe for PgMetadataCacheKey<'a>
Blanket Implementations§
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