pub enum IdentityGeneration {
Always,
ByDefault,
}Expand description
The SQL identity generation forms represented by the AST.
Variants§
Always
GENERATED ALWAYS — the identity value cannot be overridden on insert.
ByDefault
GENERATED BY DEFAULT — an explicit insert value overrides the sequence.
Trait Implementations§
Source§impl Clone for IdentityGeneration
impl Clone for IdentityGeneration
Source§fn clone(&self) -> IdentityGeneration
fn clone(&self) -> IdentityGeneration
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 IdentityGeneration
Source§impl Debug for IdentityGeneration
impl Debug for IdentityGeneration
Source§impl<'de> Deserialize<'de> for IdentityGeneration
impl<'de> Deserialize<'de> for IdentityGeneration
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 IdentityGeneration
Source§impl Hash for IdentityGeneration
impl Hash for IdentityGeneration
Source§impl PartialEq for IdentityGeneration
impl PartialEq for IdentityGeneration
Source§impl Render for IdentityGeneration
impl Render for IdentityGeneration
Source§fn render(&self, _ctx: &RenderCtx<'_>, f: &mut Formatter<'_>) -> Result
fn render(&self, _ctx: &RenderCtx<'_>, f: &mut Formatter<'_>) -> Result
Return the render for this value.
Source§fn operand_binding_power(&self) -> Option<BindingPower>
fn operand_binding_power(&self) -> Option<BindingPower>
The binding power this node contributes when it appears as an operand, or
None (the default) for a self-delimiting node — an atom, call, or
constructor — that never needs parentheses. Read moreSource§impl Serialize for IdentityGeneration
impl Serialize for IdentityGeneration
impl StructuralPartialEq for IdentityGeneration
Auto Trait Implementations§
impl Freeze for IdentityGeneration
impl RefUnwindSafe for IdentityGeneration
impl Send for IdentityGeneration
impl Sync for IdentityGeneration
impl Unpin for IdentityGeneration
impl UnsafeUnpin for IdentityGeneration
impl UnwindSafe for IdentityGeneration
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