pub struct PgInterval {
pub months: i32,
pub days: i32,
pub microseconds: i64,
}Expand description
PostgreSQL INTERVAL type.
Stored as three components matching PG’s internal representation:
months– number of months (years x 12 + months)days– number of days (not normalized to months)microseconds– time component in microseconds
Fields§
§months: i32§days: i32§microseconds: i64Trait Implementations§
Source§impl Clone for PgInterval
impl Clone for PgInterval
Source§fn clone(&self) -> PgInterval
fn clone(&self) -> PgInterval
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 PgInterval
impl Debug for PgInterval
Source§impl FromSql for PgInterval
impl FromSql for PgInterval
Source§impl Hash for PgInterval
impl Hash for PgInterval
Source§impl PartialEq for PgInterval
impl PartialEq for PgInterval
Source§impl ToSql for PgInterval
impl ToSql for PgInterval
impl Copy for PgInterval
impl Eq for PgInterval
impl StructuralPartialEq for PgInterval
Auto Trait Implementations§
impl Freeze for PgInterval
impl RefUnwindSafe for PgInterval
impl Send for PgInterval
impl Sync for PgInterval
impl Unpin for PgInterval
impl UnsafeUnpin for PgInterval
impl UnwindSafe for PgInterval
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.