pub enum AutoIncrementKind {
Serial,
IdentityAlways,
IdentityByDefault,
Legacy,
}Expand description
PostgreSQL syntax that supplies an omitted column value from an implicit sequence. SERIAL is a sequence-backed default, while identity columns retain a separate generation attribute and do not have a column default.
Variants§
Serial
IdentityAlways
IdentityByDefault
Legacy
Catalogs written before sequence provenance was persisted cannot distinguish SERIAL from identity syntax. Preserve their historical table-counter behavior instead of guessing and changing stored data.
Trait Implementations§
Source§impl Clone for AutoIncrementKind
impl Clone for AutoIncrementKind
Source§fn clone(&self) -> AutoIncrementKind
fn clone(&self) -> AutoIncrementKind
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for AutoIncrementKind
Source§impl Debug for AutoIncrementKind
impl Debug for AutoIncrementKind
Source§impl<'de> Deserialize<'de> for AutoIncrementKind
impl<'de> Deserialize<'de> for AutoIncrementKind
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 AutoIncrementKind
Source§impl PartialEq for AutoIncrementKind
impl PartialEq for AutoIncrementKind
Source§impl Serialize for AutoIncrementKind
impl Serialize for AutoIncrementKind
impl StructuralPartialEq for AutoIncrementKind
Auto Trait Implementations§
impl Freeze for AutoIncrementKind
impl RefUnwindSafe for AutoIncrementKind
impl Send for AutoIncrementKind
impl Sync for AutoIncrementKind
impl Unpin for AutoIncrementKind
impl UnsafeUnpin for AutoIncrementKind
impl UnwindSafe for AutoIncrementKind
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