#[repr(u8)]pub enum ConstrType {
Show 13 variants
Null = 0,
NotNull = 1,
Default = 2,
Identity = 3,
Check = 4,
Primary = 5,
Unique = 6,
Exclusion = 7,
Foreign = 8,
AttrDeferrable = 9,
AttrNotDeferrable = 10,
AttrDeferred = 11,
AttrImmediate = 12,
}
Variants§
Null = 0
not standard SQL, but a lot of people expect it
NotNull = 1
Default = 2
Identity = 3
Check = 4
Primary = 5
Unique = 6
Exclusion = 7
Foreign = 8
AttrDeferrable = 9
attributes for previous constraint node
AttrNotDeferrable = 10
AttrDeferred = 11
AttrImmediate = 12
Trait Implementations§
Source§impl Debug for ConstrType
impl Debug for ConstrType
Source§impl<'de> Deserialize<'de> for ConstrType
impl<'de> Deserialize<'de> for ConstrType
Source§fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for ConstrType
impl PartialEq for ConstrType
Source§impl Serialize for ConstrType
impl Serialize for ConstrType
impl StructuralPartialEq for ConstrType
Auto Trait Implementations§
impl Freeze for ConstrType
impl RefUnwindSafe for ConstrType
impl Send for ConstrType
impl Sync for ConstrType
impl Unpin for ConstrType
impl UnwindSafe for ConstrType
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