pub enum NumericCrate {
Inferred,
BigDecimal,
RustDecimal,
}Available on crate feature
_unstable-docs only.Expand description
The preferred crate to use for mapping NUMERIC types to Rust.
Variantsยง
Inferred
Use whichever crate is enabled (rust_decimal then bigdecimal).
BigDecimal
Always use types from [bigdecimal][crate::types::bigdecimal].
[macros.preferred-crates]
numeric = "bigdecimal"RustDecimal
Always use types from [rust_decimal][crate::types::rust_decimal].
[macros.preferred-crates]
numeric = "rust_decimal"Implementationsยง
Sourceยงimpl NumericCrate
impl NumericCrate
Sourcepub fn is_inferred(&self) -> bool
pub fn is_inferred(&self) -> bool
Returns self == Self::Inferred
pub fn crate_name(&self) -> Option<&str>
Trait Implementationsยง
Sourceยงimpl Debug for NumericCrate
impl Debug for NumericCrate
Sourceยงimpl Default for NumericCrate
impl Default for NumericCrate
Sourceยงfn default() -> NumericCrate
fn default() -> NumericCrate
Returns the โdefault valueโ for a type. Read more
Sourceยงimpl PartialEq for NumericCrate
impl PartialEq for NumericCrate
impl Eq for NumericCrate
impl StructuralPartialEq for NumericCrate
Auto Trait Implementationsยง
impl Freeze for NumericCrate
impl RefUnwindSafe for NumericCrate
impl Send for NumericCrate
impl Sync for NumericCrate
impl Unpin for NumericCrate
impl UnwindSafe for NumericCrate
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<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