[−][src]Struct sqlx::postgres::types::PgInterval
postgres
only.Fields
months: i32
postgres
only.days: i32
postgres
only.microseconds: i64
postgres
only.Trait Implementations
impl Clone for PgInterval
[src]
fn clone(&self) -> PgInterval
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for PgInterval
[src]
impl<'de> Decode<'de, Postgres> for PgInterval
[src]
fn decode(
value: PgValueRef<'de>
) -> Result<PgInterval, Box<dyn Error + 'static + Sync + Send>>
[src]
value: PgValueRef<'de>
) -> Result<PgInterval, Box<dyn Error + 'static + Sync + Send>>
impl<'_> Encode<'_, Postgres> for PgInterval
[src]
fn encode_by_ref(&self, buf: &mut PgArgumentBuffer) -> IsNull
[src]
fn size_hint(&self) -> usize
[src]
#[must_use]fn encode(self, buf: &mut <DB as HasArguments<'q>>::ArgumentBuffer) -> IsNull
[src]
fn produces(&self) -> Option<<DB as Database>::TypeInfo>
[src]
impl Eq for PgInterval
[src]
impl PartialEq<PgInterval> for PgInterval
[src]
fn eq(&self, other: &PgInterval) -> bool
[src]
fn ne(&self, other: &PgInterval) -> bool
[src]
impl StructuralEq for PgInterval
[src]
impl StructuralPartialEq for PgInterval
[src]
impl TryFrom<Duration> for PgInterval
[src]
type Error = Box<dyn Error + 'static + Sync + Send>
The type returned in the event of a conversion error.
fn try_from(
value: Duration
) -> Result<PgInterval, Box<dyn Error + 'static + Sync + Send>>
[src]
value: Duration
) -> Result<PgInterval, Box<dyn Error + 'static + Sync + Send>>
Convert a time::Duration
to a PgInterval
.
This returns an error if there is a loss of precision using nanoseconds or if there is a microsecond overflow.
impl TryFrom<Duration> for PgInterval
[src]
type Error = Box<dyn Error + 'static + Sync + Send>
The type returned in the event of a conversion error.
fn try_from(
value: Duration
) -> Result<PgInterval, Box<dyn Error + 'static + Sync + Send>>
[src]
value: Duration
) -> Result<PgInterval, Box<dyn Error + 'static + Sync + Send>>
Convert a chrono::Duration
to a PgInterval
.
This returns an error if there is a loss of precision using nanoseconds or if there is a microsecond or nanosecond overflow.
impl TryFrom<Duration> for PgInterval
[src]
type Error = Box<dyn Error + 'static + Sync + Send>
The type returned in the event of a conversion error.
fn try_from(
value: Duration
) -> Result<PgInterval, Box<dyn Error + 'static + Sync + Send>>
[src]
value: Duration
) -> Result<PgInterval, Box<dyn Error + 'static + Sync + Send>>
Convert a std::time::Duration
to a PgInterval
This returns an error if there is a loss of precision using nanoseconds or if there is a microsecond overflow.
impl Type<Postgres> for PgInterval
[src]
fn type_info() -> PgTypeInfo
[src]
fn compatible(ty: &<DB as Database>::TypeInfo) -> bool
[src]
Auto Trait Implementations
impl RefUnwindSafe for PgInterval
impl Send for PgInterval
impl Sync for PgInterval
impl Unpin for PgInterval
impl UnwindSafe for PgInterval
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<Q, K> Equivalent<K> for Q where
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized,
[src]
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized,
fn equivalent(&self, key: &K) -> bool
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,