Struct diesel::pg::PgMetadataLookup
source · [−]#[repr(transparent)]pub struct PgMetadataLookup { /* private fields */ }
Expand description
Determines the OID of types at runtime
Implementations
sourceimpl PgMetadataLookup
impl PgMetadataLookup
sourcepub fn lookup_type(&self, type_name: &str) -> PgTypeMetadata
pub fn lookup_type(&self, type_name: &str) -> PgTypeMetadata
Determine the type metadata for the given type_name
This function should only be used for user defined types, or types which come from an extension. This function may perform a SQL query to look up the type. For built-in types, a static OID should be preferred.
Auto Trait Implementations
impl !RefUnwindSafe for PgMetadataLookup
impl Send for PgMetadataLookup
impl !Sync for PgMetadataLookup
impl Unpin for PgMetadataLookup
impl UnwindSafe for PgMetadataLookup
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more