pub struct TypeInfo {
pub oid: Oid,
pub name: &'static str,
pub kind: u8,
pub category: u8,
pub len: i16,
pub elem: Oid,
pub array: Oid,
pub delim: u8,
}Expand description
The columns of pg_type that the wire format and the type rules read.
Fields§
§oid: Oid§name: &'static str§kind: u8typtype: b for a base type, p for a pseudo-type, r for a range, m for a multirange.
category: u8typcategory, the letter that the rules for implicit casts use.
len: i16typlen: the size in bytes, -1 for a value of variable length and -2 for a C string.
elem: Oidtypelem: the element type of an array, or 0.
array: Oidtyparray: the array type of this type, or 0.
delim: u8typdelim: the character between the elements of an array in the text format.
Implementations§
Trait Implementations§
impl Copy for TypeInfo
impl Eq for TypeInfo
impl StructuralPartialEq for TypeInfo
Auto Trait Implementations§
impl Freeze for TypeInfo
impl RefUnwindSafe for TypeInfo
impl Send for TypeInfo
impl Sync for TypeInfo
impl Unpin for TypeInfo
impl UnsafeUnpin 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