#[non_exhaustive]pub struct SequenceEntity {
pub increment: i64,
pub start_value: Bytes,
pub max_value: Bytes,
pub min_value: Bytes,
pub cycle: bool,
pub cache: i64,
pub custom_features: Option<Struct>,
/* private fields */
}Expand description
Sequence’s parent is a schema.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.increment: i64Increment value for the sequence.
start_value: BytesStart number for the sequence represented as bytes to accommodate large. numbers
max_value: BytesMaximum number for the sequence represented as bytes to accommodate large. numbers
min_value: BytesMinimum number for the sequence represented as bytes to accommodate large. numbers
cycle: boolIndicates whether the sequence value should cycle through.
cache: i64Indicates number of entries to cache / precreate.
custom_features: Option<Struct>Custom engine specific features.
Implementations§
Source§impl SequenceEntity
impl SequenceEntity
pub fn new() -> Self
Sourcepub fn set_increment<T: Into<i64>>(self, v: T) -> Self
pub fn set_increment<T: Into<i64>>(self, v: T) -> Self
Sets the value of increment.
Sourcepub fn set_start_value<T: Into<Bytes>>(self, v: T) -> Self
pub fn set_start_value<T: Into<Bytes>>(self, v: T) -> Self
Sets the value of start_value.
Sourcepub fn set_max_value<T: Into<Bytes>>(self, v: T) -> Self
pub fn set_max_value<T: Into<Bytes>>(self, v: T) -> Self
Sets the value of max_value.
Sourcepub fn set_min_value<T: Into<Bytes>>(self, v: T) -> Self
pub fn set_min_value<T: Into<Bytes>>(self, v: T) -> Self
Sets the value of min_value.
Sourcepub fn set_custom_features<T>(self, v: T) -> Self
pub fn set_custom_features<T>(self, v: T) -> Self
Sets the value of custom_features.
Sourcepub fn set_or_clear_custom_features<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_custom_features<T>(self, v: Option<T>) -> Self
Sets or clears the value of custom_features.
Trait Implementations§
Source§impl Clone for SequenceEntity
impl Clone for SequenceEntity
Source§fn clone(&self) -> SequenceEntity
fn clone(&self) -> SequenceEntity
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 SequenceEntity
impl Debug for SequenceEntity
Source§impl Default for SequenceEntity
impl Default for SequenceEntity
Source§fn default() -> SequenceEntity
fn default() -> SequenceEntity
Returns the “default value” for a type. Read more
Source§impl Message for SequenceEntity
impl Message for SequenceEntity
Source§impl PartialEq for SequenceEntity
impl PartialEq for SequenceEntity
impl StructuralPartialEq for SequenceEntity
Auto Trait Implementations§
impl !Freeze for SequenceEntity
impl RefUnwindSafe for SequenceEntity
impl Send for SequenceEntity
impl Sync for SequenceEntity
impl Unpin for SequenceEntity
impl UnwindSafe for SequenceEntity
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