Struct sqlx_exasol::Months
source · pub struct Months(/* private fields */);Expand description
A duration in calendar months, analog to chrono::Months.
Unlike chrono::Months, this type can represent a negative duration.
Implementations§
Trait Implementations§
source§impl Add<Months> for NaiveDateTime
impl Add<Months> for NaiveDateTime
source§impl<'r> Decode<'r, Exasol> for Months
impl<'r> Decode<'r, Exasol> for Months
source§fn decode(value: ExaValueRef<'r>) -> Result<Self, BoxDynError>
fn decode(value: ExaValueRef<'r>) -> Result<Self, BoxDynError>
Decode a new value of this type using a raw value from the database.
source§impl Encode<'_, Exasol> for Months
impl Encode<'_, Exasol> for Months
source§fn encode_by_ref(&self, buf: &mut ExaBuffer) -> Result<IsNull, BoxDynError>
fn encode_by_ref(&self, buf: &mut ExaBuffer) -> Result<IsNull, BoxDynError>
fn produces(&self) -> Option<ExaTypeInfo>
fn size_hint(&self) -> usize
source§impl PartialOrd for Months
impl PartialOrd for Months
source§impl Sub<Months> for NaiveDateTime
impl Sub<Months> for NaiveDateTime
source§impl Type<Exasol> for Months
impl Type<Exasol> for Months
source§fn type_info() -> ExaTypeInfo
fn type_info() -> ExaTypeInfo
Returns the canonical SQL type for this Rust type. Read more
source§fn compatible(ty: &ExaTypeInfo) -> bool
fn compatible(ty: &ExaTypeInfo) -> bool
Determines if this Rust type is compatible with the given SQL type. Read more
impl Copy for Months
impl Eq for Months
impl StructuralPartialEq for Months
Auto Trait Implementations§
impl Freeze for Months
impl RefUnwindSafe for Months
impl Send for Months
impl Sync for Months
impl Unpin for Months
impl UnwindSafe for Months
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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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.source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more