pub struct SequenceOptions {
pub increment: Option<i64>,
pub min_value: Option<SeqBound>,
pub max_value: Option<SeqBound>,
pub start: Option<i64>,
pub restart: Option<Option<i64>>,
pub cache: Option<i64>,
pub cycle: Option<bool>,
pub owned_by: Option<SequenceOwnedBy>,
}Expand description
v7.17.0 — option grammar shared by CREATE / ALTER SEQUENCE.
All fields are optional. min_value/max_value carry
Some(SeqBound::NoBound) for NO MINVALUE / NO MAXVALUE.
Fields§
§increment: Option<i64>§min_value: Option<SeqBound>§max_value: Option<SeqBound>§start: Option<i64>§restart: Option<Option<i64>>RESTART [WITH n] — ALTER-only. Some(None) = bare
RESTART, Some(Some(n)) = RESTART WITH n.
cache: Option<i64>§cycle: Option<bool>§owned_by: Option<SequenceOwnedBy>Trait Implementations§
Source§impl Clone for SequenceOptions
impl Clone for SequenceOptions
Source§fn clone(&self) -> SequenceOptions
fn clone(&self) -> SequenceOptions
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 moreSource§impl Debug for SequenceOptions
impl Debug for SequenceOptions
Source§impl Default for SequenceOptions
impl Default for SequenceOptions
Source§fn default() -> SequenceOptions
fn default() -> SequenceOptions
Returns the “default value” for a type. Read more
impl Eq for SequenceOptions
Source§impl PartialEq for SequenceOptions
impl PartialEq for SequenceOptions
Source§fn eq(&self, other: &SequenceOptions) -> bool
fn eq(&self, other: &SequenceOptions) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for SequenceOptions
Auto Trait Implementations§
impl Freeze for SequenceOptions
impl RefUnwindSafe for SequenceOptions
impl Send for SequenceOptions
impl Sync for SequenceOptions
impl Unpin for SequenceOptions
impl UnsafeUnpin for SequenceOptions
impl UnwindSafe for SequenceOptions
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