pub struct Identity {
pub name: Cow<'static, str>,
pub schema: Option<Cow<'static, str>>,
pub type_: IdentityType,
pub increment: Option<Cow<'static, str>>,
pub min_value: Option<Cow<'static, str>>,
pub max_value: Option<Cow<'static, str>>,
pub start_with: Option<Cow<'static, str>>,
pub cache: Option<i32>,
pub cycle: Option<bool>,
}Expand description
The GENERATED ... AS IDENTITY part of a Column; see IdentityDef.
Fields§
§name: Cow<'static, str>Name of the backing sequence
schema: Option<Cow<'static, str>>Schema of the backing sequence
type_: IdentityTypeALWAYS or BY DEFAULT (serialized as type: "always" or
"byDefault")
increment: Option<Cow<'static, str>>INCREMENT BY
min_value: Option<Cow<'static, str>>MINVALUE
max_value: Option<Cow<'static, str>>MAXVALUE
start_with: Option<Cow<'static, str>>START WITH
cache: Option<i32>CACHE
cycle: Option<bool>CYCLE
Implementations§
Trait Implementations§
impl Eq for Identity
impl StructuralPartialEq for Identity
Auto Trait Implementations§
impl Freeze for Identity
impl RefUnwindSafe for Identity
impl Send for Identity
impl Sync for Identity
impl Unpin for Identity
impl UnsafeUnpin for Identity
impl UnwindSafe for Identity
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