pub struct GeneratedAsIdentity {
pub always: bool,
pub on_null: bool,
pub start: Option<Box<Expression>>,
pub increment: Option<Box<Expression>>,
pub minvalue: Option<Box<Expression>>,
pub maxvalue: Option<Box<Expression>>,
pub cycle: Option<bool>,
}Expand description
Generated identity column constraint
Fields§
§always: boolTrue for ALWAYS, False for BY DEFAULT
on_null: boolON NULL (only valid with BY DEFAULT)
start: Option<Box<Expression>>START WITH value
increment: Option<Box<Expression>>INCREMENT BY value
minvalue: Option<Box<Expression>>MINVALUE
maxvalue: Option<Box<Expression>>MAXVALUE
cycle: Option<bool>CYCLE option - Some(true) = CYCLE, Some(false) = NO CYCLE, None = not specified
Trait Implementations§
Source§impl Clone for GeneratedAsIdentity
impl Clone for GeneratedAsIdentity
Source§fn clone(&self) -> GeneratedAsIdentity
fn clone(&self) -> GeneratedAsIdentity
Returns a duplicate of the value. Read more
1.0.0 · 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 GeneratedAsIdentity
impl Debug for GeneratedAsIdentity
Source§impl<'de> Deserialize<'de> for GeneratedAsIdentity
impl<'de> Deserialize<'de> for GeneratedAsIdentity
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 GeneratedAsIdentity
impl PartialEq for GeneratedAsIdentity
Source§impl Serialize for GeneratedAsIdentity
impl Serialize for GeneratedAsIdentity
impl StructuralPartialEq for GeneratedAsIdentity
Auto Trait Implementations§
impl Freeze for GeneratedAsIdentity
impl RefUnwindSafe for GeneratedAsIdentity
impl Send for GeneratedAsIdentity
impl Sync for GeneratedAsIdentity
impl Unpin for GeneratedAsIdentity
impl UnwindSafe for GeneratedAsIdentity
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