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) -> IsNull
fn encode_by_ref(&self, buf: &mut ExaBuffer) -> IsNull
fn produces(&self) -> Option<ExaTypeInfo>
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.source§impl PartialEq for Months
impl PartialEq for Months
source§impl PartialOrd for Months
impl PartialOrd for Months
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self and other) and is used by the <=
operator. Read moresource§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 StructuralEq for Months
impl StructuralPartialEq for Months
Auto Trait Implementations§
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
§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.