pub struct IntervalDecoder;Expand description
Decoder for interval, storing the ISO 8601 duration Postgres prints
under IntervalStyle = iso_8601, such as P1Y2M3DT4H5M6.789S.
Trait Implementations§
Source§impl Clone for IntervalDecoder
impl Clone for IntervalDecoder
impl Copy for IntervalDecoder
Source§impl Debug for IntervalDecoder
impl Debug for IntervalDecoder
Source§impl<S, B> Decoder<PgBinary, S, B> for IntervalDecoder
impl<S, B> Decoder<PgBinary, S, B> for IntervalDecoder
Source§fn decode(
&self,
payload: PgBinaryColumn<'_>,
) -> Result<Value<S, B>, DecodeError>
fn decode( &self, payload: PgBinaryColumn<'_>, ) -> Result<Value<S, B>, DecodeError>
Decode one payload. Read more
Auto Trait Implementations§
impl Freeze for IntervalDecoder
impl RefUnwindSafe for IntervalDecoder
impl Send for IntervalDecoder
impl Sync for IntervalDecoder
impl Unpin for IntervalDecoder
impl UnsafeUnpin for IntervalDecoder
impl UnwindSafe for IntervalDecoder
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