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
Identity column configuration (runtime)
Fields§
§name: Cow<'static, str>Sequence name
schema: Option<Cow<'static, str>>Schema name (optional)
type_: IdentityTypeIdentity type: always or by_default
increment: Option<Cow<'static, str>>Increment value
min_value: Option<Cow<'static, str>>Minimum value
max_value: Option<Cow<'static, str>>Maximum value
start_with: Option<Cow<'static, str>>Start value
cache: Option<i32>Cache value
cycle: Option<bool>Cycle flag
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 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