pub struct TypeRegistry { /* private fields */ }Expand description
Registry of PostgreSQL types.
Provides lookup by OID or name for type information.
Implementations§
Source§impl TypeRegistry
impl TypeRegistry
Sourcepub fn category(&self, oid: u32) -> TypeCategory
pub fn category(&self, oid: u32) -> TypeCategory
Get the type category for an OID.
Sourcepub fn supports_binary(&self, oid: u32) -> bool
pub fn supports_binary(&self, oid: u32) -> bool
Check if a type supports binary format.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for TypeRegistry
impl RefUnwindSafe for TypeRegistry
impl Send for TypeRegistry
impl Sync for TypeRegistry
impl Unpin for TypeRegistry
impl UnwindSafe for TypeRegistry
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, _span: NoopSpan) -> Self
fn instrument(self, _span: NoopSpan) -> Self
Instruments this future with a span (no-op when disabled).
Source§fn in_current_span(self) -> Self
fn in_current_span(self) -> Self
Instruments this future with the current span (no-op when disabled).