pub struct Type {
pub oid: u32,
pub name: String,
pub namespace: u32,
pub owner: u32,
pub relation: u32,
pub element: u32,
pub array: u32,
pub domain: Option<Domain>,
pub labels: Option<Vec<EnumLabel>>,
pub range: Option<RangePart>,
}Expand description
A row type, a domain, or the array type of one of them.
Fields§
§oid: u32The OID.
name: StringThe name.
namespace: u32The OID of the schema.
owner: u32The OID of the owner role.
relation: u32The OID of the relation of a row type, or 0 for an array type.
element: u32The OID of the element type of an array type, or 0 for a row type.
array: u32The OID of the array type of a row type or a domain, or 0 for an array type.
domain: Option<Domain>The facts of a domain, or None for a type of another kind.
labels: Option<Vec<EnumLabel>>The labels of an enum type in their sort order, as pg_enum holds them, or None for a type of another kind.
range: Option<RangePart>The facts of a range type or of a multirange type, or None for a type of another kind.
Trait Implementations§
impl Eq for Type
impl StructuralPartialEq for Type
Auto Trait Implementations§
impl Freeze for Type
impl RefUnwindSafe for Type
impl Send for Type
impl Sync for Type
impl Unpin for Type
impl UnsafeUnpin for Type
impl UnwindSafe for Type
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