pub struct PgSequence { /* private fields */ }Expand description
PostgreSQL sequence metadata.
Implementations§
Source§impl PgSequence
impl PgSequence
Sourcepub fn new(name: PgSequenceName) -> Self
pub fn new(name: PgSequenceName) -> Self
Creates sequence metadata from a name.
Sourcepub const fn with_options(self, options: PgSequenceOptions) -> Self
pub const fn with_options(self, options: PgSequenceOptions) -> Self
Sets sequence options.
Sourcepub fn with_owner(self, owner: PgSequenceOwner) -> Self
pub fn with_owner(self, owner: PgSequenceOwner) -> Self
Sets ownership metadata.
Sourcepub const fn name(&self) -> &PgSequenceName
pub const fn name(&self) -> &PgSequenceName
Returns the sequence name.
Sourcepub const fn options(&self) -> PgSequenceOptions
pub const fn options(&self) -> PgSequenceOptions
Returns sequence options.
Sourcepub const fn owner(&self) -> &PgSequenceOwner
pub const fn owner(&self) -> &PgSequenceOwner
Returns ownership metadata.
Trait Implementations§
Source§impl Clone for PgSequence
impl Clone for PgSequence
Source§fn clone(&self) -> PgSequence
fn clone(&self) -> PgSequence
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 PgSequence
impl Debug for PgSequence
Source§impl Hash for PgSequence
impl Hash for PgSequence
Source§impl Ord for PgSequence
impl Ord for PgSequence
Source§fn cmp(&self, other: &PgSequence) -> Ordering
fn cmp(&self, other: &PgSequence) -> 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 PgSequence
impl PartialEq for PgSequence
Source§fn eq(&self, other: &PgSequence) -> bool
fn eq(&self, other: &PgSequence) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for PgSequence
impl PartialOrd for PgSequence
impl Eq for PgSequence
impl StructuralPartialEq for PgSequence
Auto Trait Implementations§
impl Freeze for PgSequence
impl RefUnwindSafe for PgSequence
impl Send for PgSequence
impl Sync for PgSequence
impl Unpin for PgSequence
impl UnsafeUnpin for PgSequence
impl UnwindSafe for PgSequence
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