Struct diesel::pg::PgMetadataCache
source · pub struct PgMetadataCache { /* private fields */ }
Available on crate features
postgres_backend
and i-implement-a-third-party-backend-and-opt-into-breaking-changes
only.Expand description
Cache for the OIDs of custom Postgres types
Implementations§
source§impl PgMetadataCache
impl PgMetadataCache
sourcepub fn lookup_type(
&self,
type_name: &PgMetadataCacheKey<'_>
) -> Option<PgTypeMetadata>
pub fn lookup_type( &self, type_name: &PgMetadataCacheKey<'_> ) -> Option<PgTypeMetadata>
Lookup the OID of a custom type
sourcepub fn store_type(
&mut self,
type_name: PgMetadataCacheKey<'_>,
type_metadata: impl Into<InnerPgTypeMetadata>
)
pub fn store_type( &mut self, type_name: PgMetadataCacheKey<'_>, type_metadata: impl Into<InnerPgTypeMetadata> )
Store the OID of a custom type
Trait Implementations§
source§impl Default for PgMetadataCache
impl Default for PgMetadataCache
source§fn default() -> PgMetadataCache
fn default() -> PgMetadataCache
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for PgMetadataCache
impl RefUnwindSafe for PgMetadataCache
impl Send for PgMetadataCache
impl Sync for PgMetadataCache
impl Unpin for PgMetadataCache
impl UnwindSafe for PgMetadataCache
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