pub struct PgTimeTz {
pub time: NaiveTime,
pub offset_seconds: i32,
}Expand description
PostgreSQL TIMETZ (TIME WITH TIME ZONE) type.
Wire format: i64 microseconds since midnight + i32 UTC offset in seconds (negated). PostgreSQL stores the offset with west-positive convention, so UTC+7 is stored as -25200.
Fields§
§time: NaiveTime§offset_seconds: i32Trait Implementations§
Source§impl ToSql for PgTimeTz
impl ToSql for PgTimeTz
impl Copy for PgTimeTz
impl Eq for PgTimeTz
impl StructuralPartialEq for PgTimeTz
Auto Trait Implementations§
impl Freeze for PgTimeTz
impl RefUnwindSafe for PgTimeTz
impl Send for PgTimeTz
impl Sync for PgTimeTz
impl Unpin for PgTimeTz
impl UnsafeUnpin for PgTimeTz
impl UnwindSafe for PgTimeTz
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.