Struct sqlx_core::postgres::types::PgTimeTz [−][src]
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: Offset
Trait Implementations
Decode a new value of this type using a raw value from the database.
Decode a new value of this type using a raw value from the database.
Writes the value of self
into buf
without moving self
. Read more
fn encode(self, buf: &mut <DB as HasArguments<'q>>::ArgumentBuffer) -> IsNull where
Self: Sized,
fn encode(self, buf: &mut <DB as HasArguments<'q>>::ArgumentBuffer) -> IsNull where
Self: Sized,
Writes the value of self
into buf
in the expected format for the database.
Writes the value of self
into buf
without moving self
. Read more
fn encode(self, buf: &mut <DB as HasArguments<'q>>::ArgumentBuffer) -> IsNull where
Self: Sized,
fn encode(self, buf: &mut <DB as HasArguments<'q>>::ArgumentBuffer) -> IsNull where
Self: Sized,
Writes the value of self
into buf
in the expected format for the database.
Auto Trait Implementations
impl<Time, Offset> RefUnwindSafe for PgTimeTz<Time, Offset> where
Offset: RefUnwindSafe,
Time: RefUnwindSafe,
impl<Time, Offset> UnwindSafe for PgTimeTz<Time, Offset> where
Offset: UnwindSafe,
Time: UnwindSafe,
Blanket Implementations
Mutably borrows from an owned value. Read more