pub struct NotNullDeclaration {
pub column: String,
pub name: Option<String>,
pub no_inherit: bool,
pub explicit: bool,
}Expand description
A NOT NULL constraint a CREATE TABLE statement declares or implies, which AddRelationNotNullConstraints resolves against the relation’s columns once they exist.
Fields§
§column: String§name: Option<String>§no_inherit: bool§explicit: boolWhether the statement wrote the constraint, as a column clause or a table constraint, rather than implying it with a PRIMARY KEY, SERIAL or identity.
Trait Implementations§
Source§impl Clone for NotNullDeclaration
impl Clone for NotNullDeclaration
Source§impl Debug for NotNullDeclaration
impl Debug for NotNullDeclaration
Source§impl<'de> Deserialize<'de> for NotNullDeclaration
impl<'de> Deserialize<'de> for NotNullDeclaration
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
impl Eq for NotNullDeclaration
Source§impl PartialEq for NotNullDeclaration
impl PartialEq for NotNullDeclaration
Source§impl Serialize for NotNullDeclaration
impl Serialize for NotNullDeclaration
impl StructuralPartialEq for NotNullDeclaration
Auto Trait Implementations§
impl Freeze for NotNullDeclaration
impl RefUnwindSafe for NotNullDeclaration
impl Send for NotNullDeclaration
impl Sync for NotNullDeclaration
impl Unpin for NotNullDeclaration
impl UnsafeUnpin for NotNullDeclaration
impl UnwindSafe for NotNullDeclaration
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
impl<T> ErasedDestructor for Twhere
T: 'static,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more