pub struct PgSequenceOptions { /* private fields */ }Expand description
PostgreSQL sequence options using simple numeric primitives.
Implementations§
Source§impl PgSequenceOptions
impl PgSequenceOptions
Sourcepub const fn with_increment(
self,
increment: i64,
) -> Result<Self, PgSequenceError>
pub const fn with_increment( self, increment: i64, ) -> Result<Self, PgSequenceError>
Sourcepub const fn with_bounds(
self,
min_value: Option<i64>,
max_value: Option<i64>,
) -> Self
pub const fn with_bounds( self, min_value: Option<i64>, max_value: Option<i64>, ) -> Self
Sets min and max labels.
Sourcepub const fn with_start(self, start: i64) -> Self
pub const fn with_start(self, start: i64) -> Self
Sets the start value.
Sourcepub const fn with_cache(self, cache: u64) -> Result<Self, PgSequenceError>
pub const fn with_cache(self, cache: u64) -> Result<Self, PgSequenceError>
Sourcepub const fn with_cycle(self, cycle: bool) -> Self
pub const fn with_cycle(self, cycle: bool) -> Self
Sets the cycle flag.
Trait Implementations§
Source§impl Clone for PgSequenceOptions
impl Clone for PgSequenceOptions
Source§fn clone(&self) -> PgSequenceOptions
fn clone(&self) -> PgSequenceOptions
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 PgSequenceOptions
impl Debug for PgSequenceOptions
Source§impl Default for PgSequenceOptions
impl Default for PgSequenceOptions
Source§impl Hash for PgSequenceOptions
impl Hash for PgSequenceOptions
Source§impl Ord for PgSequenceOptions
impl Ord for PgSequenceOptions
Source§fn cmp(&self, other: &PgSequenceOptions) -> Ordering
fn cmp(&self, other: &PgSequenceOptions) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for PgSequenceOptions
impl PartialEq for PgSequenceOptions
Source§fn eq(&self, other: &PgSequenceOptions) -> bool
fn eq(&self, other: &PgSequenceOptions) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for PgSequenceOptions
impl PartialOrd for PgSequenceOptions
impl Copy for PgSequenceOptions
impl Eq for PgSequenceOptions
impl StructuralPartialEq for PgSequenceOptions
Auto Trait Implementations§
impl Freeze for PgSequenceOptions
impl RefUnwindSafe for PgSequenceOptions
impl Send for PgSequenceOptions
impl Sync for PgSequenceOptions
impl Unpin for PgSequenceOptions
impl UnsafeUnpin for PgSequenceOptions
impl UnwindSafe for PgSequenceOptions
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