pub struct SequenceDef {
pub name: Box<str>,
pub column: ColId,
pub start: Option<i128>,
pub min_value: Option<i128>,
pub max_value: Option<i128>,
pub increment: i128,
}Expand description
A sequence definition for a database table column.
Fields§
§name: Box<str>The name of the sequence. Must be unique within the containing ModuleDef.
column: ColIdThe position of the column associated with this sequence.
This refers to a column in the same RawTableDef that contains this RawSequenceDef.
The column must have integral type.
This must be the unique RawSequenceDef for this column.
start: Option<i128>The value to start assigning to this column. Will be incremented by 1 for each new row. If not present, an arbitrary start point may be selected.
min_value: Option<i128>The minimum allowed value in this column. If not present, no minimum.
max_value: Option<i128>The maximum allowed value in this column. If not present, no maximum.
increment: i128The increment to use when updating the sequence.
Trait Implementations§
Source§impl Clone for SequenceDef
impl Clone for SequenceDef
Source§fn clone(&self) -> SequenceDef
fn clone(&self) -> SequenceDef
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 SequenceDef
impl Debug for SequenceDef
Source§impl From<SequenceDef> for RawSequenceDefV9
impl From<SequenceDef> for RawSequenceDefV9
Source§fn from(val: SequenceDef) -> Self
fn from(val: SequenceDef) -> Self
Converts to this type from the input type.
Source§impl ModuleDefLookup for SequenceDef
impl ModuleDefLookup for SequenceDef
Source§impl PartialEq for SequenceDef
impl PartialEq for SequenceDef
impl Eq for SequenceDef
impl StructuralPartialEq for SequenceDef
Auto Trait Implementations§
impl Freeze for SequenceDef
impl RefUnwindSafe for SequenceDef
impl Send for SequenceDef
impl Sync for SequenceDef
impl Unpin for SequenceDef
impl UnwindSafe for SequenceDef
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more