pub enum AutoGenKind {
Autoincrement,
Identity,
}Expand description
Auto-generation strategy for a column value.
autoincrement is SQLite-specific (INTEGER PRIMARY KEY AUTOINCREMENT) and
identity is PostgreSQL-specific (GENERATED ALWAYS AS IDENTITY). They are
mutually exclusive dialect variants, so they live in a single optional enum
rather than two parallel booleans.
Variants§
Autoincrement
SQLite INTEGER PRIMARY KEY AUTOINCREMENT.
Identity
PostgreSQL GENERATED ALWAYS AS IDENTITY.
Trait Implementations§
Source§impl Clone for AutoGenKind
impl Clone for AutoGenKind
Source§fn clone(&self) -> AutoGenKind
fn clone(&self) -> AutoGenKind
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 moreSource§impl Debug for AutoGenKind
impl Debug for AutoGenKind
Source§impl<'de> Deserialize<'de> for AutoGenKind
impl<'de> Deserialize<'de> for AutoGenKind
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 JsonSchema for AutoGenKind
impl JsonSchema for AutoGenKind
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreSource§impl PartialEq for AutoGenKind
impl PartialEq for AutoGenKind
Source§fn eq(&self, other: &AutoGenKind) -> bool
fn eq(&self, other: &AutoGenKind) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for AutoGenKind
impl Serialize for AutoGenKind
impl Copy for AutoGenKind
impl Eq for AutoGenKind
impl StructuralPartialEq for AutoGenKind
Auto Trait Implementations§
impl Freeze for AutoGenKind
impl RefUnwindSafe for AutoGenKind
impl Send for AutoGenKind
impl Sync for AutoGenKind
impl Unpin for AutoGenKind
impl UnsafeUnpin for AutoGenKind
impl UnwindSafe for AutoGenKind
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