pub struct Domain {
pub base: u32,
pub typmod: i32,
pub collation: u32,
pub default: Option<String>,
pub not_null: bool,
}Expand description
The facts of a domain that pg_type holds for a type of the kind d.
Fields§
§base: u32typbasetype: the OID of the base type.
typmod: i32typtypmod: the typmod that the domain applies to the base type, or -1.
collation: u32typcollation: the collation of the domain, or 0 for a type that is not collatable.
default: Option<String>typdefaultbin: the default in the form of the analyzer, or None.
not_null: booltypnotnull: the domain has a not-null constraint.
Trait Implementations§
impl Eq for Domain
impl StructuralPartialEq for Domain
Auto Trait Implementations§
impl Freeze for Domain
impl RefUnwindSafe for Domain
impl Send for Domain
impl Sync for Domain
impl Unpin for Domain
impl UnsafeUnpin for Domain
impl UnwindSafe for Domain
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