pub struct PgDeferrability { /* private fields */ }Expand description
PostgreSQL constraint deferrability metadata.
Implementations§
Source§impl PgDeferrability
impl PgDeferrability
Sourcepub const fn not_deferrable() -> Self
pub const fn not_deferrable() -> Self
Creates a not-deferrable label.
Sourcepub const fn deferrable(initially: PgInitially) -> Self
pub const fn deferrable(initially: PgInitially) -> Self
Creates a deferrable label with initial timing.
Sourcepub const fn is_deferrable(self) -> bool
pub const fn is_deferrable(self) -> bool
Returns true when the constraint is deferrable.
Sourcepub const fn initially(self) -> PgInitially
pub const fn initially(self) -> PgInitially
Returns the initial timing label.
Trait Implementations§
Source§impl Clone for PgDeferrability
impl Clone for PgDeferrability
Source§fn clone(&self) -> PgDeferrability
fn clone(&self) -> PgDeferrability
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 PgDeferrability
impl Debug for PgDeferrability
Source§impl Default for PgDeferrability
impl Default for PgDeferrability
Source§fn default() -> PgDeferrability
fn default() -> PgDeferrability
Returns the “default value” for a type. Read more
Source§impl Display for PgDeferrability
impl Display for PgDeferrability
Source§impl Hash for PgDeferrability
impl Hash for PgDeferrability
Source§impl Ord for PgDeferrability
impl Ord for PgDeferrability
Source§fn cmp(&self, other: &PgDeferrability) -> Ordering
fn cmp(&self, other: &PgDeferrability) -> 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 PgDeferrability
impl PartialEq for PgDeferrability
Source§fn eq(&self, other: &PgDeferrability) -> bool
fn eq(&self, other: &PgDeferrability) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for PgDeferrability
impl PartialOrd for PgDeferrability
impl Copy for PgDeferrability
impl Eq for PgDeferrability
impl StructuralPartialEq for PgDeferrability
Auto Trait Implementations§
impl Freeze for PgDeferrability
impl RefUnwindSafe for PgDeferrability
impl Send for PgDeferrability
impl Sync for PgDeferrability
impl Unpin for PgDeferrability
impl UnsafeUnpin for PgDeferrability
impl UnwindSafe for PgDeferrability
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