pub struct TypeInfo {
pub oid: u32,
pub name: &'static str,
pub array_oid: Option<u32>,
pub element_oid: Option<u32>,
pub category: TypeCategory,
pub size: i16,
pub binary_format: bool,
}Expand description
Information about a PostgreSQL type.
Fields§
§oid: u32The type’s OID
name: &'static strThe type’s name (e.g., “int4”, “text”)
array_oid: Option<u32>OID of the array type for this element type (if any)
element_oid: Option<u32>OID of the element type (if this is an array type)
category: TypeCategoryType category
size: i16Size in bytes (-1 for variable, -2 for null-terminated)
binary_format: boolWhether this type supports binary format
Trait Implementations§
Auto Trait Implementations§
impl Freeze for TypeInfo
impl RefUnwindSafe for TypeInfo
impl Send for TypeInfo
impl Sync for TypeInfo
impl Unpin for TypeInfo
impl UnwindSafe for TypeInfo
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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).