pub struct SequenceOptions {
pub data_type: String,
pub min_value: Option<i64>,
pub max_value: Option<i64>,
pub cycle: bool,
pub cache_size: i64,
}Expand description
Durable SQL sequence state. Sequence allocation is implemented by the catalog backend as one atomic mutation so independent engine sessions (and independently opened engines) cannot return the same value.
Fields§
§data_type: String§min_value: Option<i64>None is accepted only while decoding a legacy row and is resolved from its increment direction by native sequence restoration.
max_value: Option<i64>None is accepted only while decoding a legacy row and is resolved from its increment direction by native sequence restoration.
cycle: bool§cache_size: i64Trait 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§impl<'de> Deserialize<'de> for SequenceOptions
impl<'de> Deserialize<'de> for SequenceOptions
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
impl Eq for SequenceOptions
Source§impl PartialEq for SequenceOptions
impl PartialEq for SequenceOptions
Source§impl Serialize for SequenceOptions
impl Serialize for SequenceOptions
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