Struct sqlx_oldapi::postgres::types::PgTimeTz   
source · pub struct PgTimeTz<Time = Time, Offset = UtcOffset> {
    pub time: Time,
    pub offset: Offset,
}Available on crate feature 
postgres only.Expand description
Represents a moment of time, in a specified timezone.
Warning
PgTimeTz provides TIMETZ and is supported only for reading from legacy databases.
PostgreSQL recommends to use TIMESTAMPTZ instead.
Fields§
§time: Time§offset: OffsetTrait Implementations§
source§impl Encode<'_, Postgres> for PgTimeTz<NaiveTime, FixedOffset>
 
impl Encode<'_, Postgres> for PgTimeTz<NaiveTime, FixedOffset>
source§fn encode_by_ref(&self, buf: &mut PgArgumentBuffer) -> IsNull
 
fn encode_by_ref(&self, buf: &mut PgArgumentBuffer) -> IsNull
fn size_hint(&self) -> usize
source§fn encode(self, buf: &mut <DB as HasArguments<'q>>::ArgumentBuffer) -> IsNullwhere
    Self: Sized,
 
fn encode(self, buf: &mut <DB as HasArguments<'q>>::ArgumentBuffer) -> IsNullwhere Self: Sized,
Writes the value of 
self into buf in the expected format for the database.fn produces(&self) -> Option<<DB as Database>::TypeInfo>
source§impl Encode<'_, Postgres> for PgTimeTz<Time, UtcOffset>
 
impl Encode<'_, Postgres> for PgTimeTz<Time, UtcOffset>
source§fn encode_by_ref(&self, buf: &mut PgArgumentBuffer) -> IsNull
 
fn encode_by_ref(&self, buf: &mut PgArgumentBuffer) -> IsNull
fn size_hint(&self) -> usize
source§fn encode(self, buf: &mut <DB as HasArguments<'q>>::ArgumentBuffer) -> IsNullwhere
    Self: Sized,
 
fn encode(self, buf: &mut <DB as HasArguments<'q>>::ArgumentBuffer) -> IsNullwhere Self: Sized,
Writes the value of 
self into buf in the expected format for the database.fn produces(&self) -> Option<<DB as Database>::TypeInfo>
source§impl<Time, Offset> PartialEq<PgTimeTz<Time, Offset>> for PgTimeTz<Time, Offset>where
    Time: PartialEq<Time>,
    Offset: PartialEq<Offset>,
 
impl<Time, Offset> PartialEq<PgTimeTz<Time, Offset>> for PgTimeTz<Time, Offset>where Time: PartialEq<Time>, Offset: PartialEq<Offset>,
impl<Time, Offset> Copy for PgTimeTz<Time, Offset>where Time: Copy, Offset: Copy,
impl<Time, Offset> StructuralPartialEq for PgTimeTz<Time, Offset>
Auto Trait Implementations§
impl<Time, Offset> RefUnwindSafe for PgTimeTz<Time, Offset>where Offset: RefUnwindSafe, Time: RefUnwindSafe,
impl<Time, Offset> Send for PgTimeTz<Time, Offset>where Offset: Send, Time: Send,
impl<Time, Offset> Sync for PgTimeTz<Time, Offset>where Offset: Sync, Time: Sync,
impl<Time, Offset> Unpin for PgTimeTz<Time, Offset>where Offset: Unpin, Time: Unpin,
impl<Time, Offset> UnwindSafe for PgTimeTz<Time, Offset>where Offset: UnwindSafe, Time: UnwindSafe,
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