pub struct TypeDecimal {
pub max_precision: Option<i64>,
pub max_scale: Option<i64>,
pub metadata: Map<String, Value>,
pub system_metadata: Option<SystemTypeMetadata>,
pub type_: Value,
}Expand description
TypeDecimal
Fields§
§max_precision: Option<i64>The maximum number of digits in the integer part of the decimal type where (P, number of digits) <= 38 and scale (S, number of fractional digits) 0 <= S <= P.
max_scale: Option<i64>The maximum number of digits after the decimal point of the decimal type where (P, number of digits) <= 38 and scale (S, number of fractional digits) 0 <= S <= P.
metadata: Map<String, Value>Arbitrary data created by the dialect author.
system_metadata: Option<SystemTypeMetadata>§type_: ValueImplementations§
Source§impl TypeDecimal
impl TypeDecimal
pub fn builder() -> TypeDecimal
Trait Implementations§
Source§impl Clone for TypeDecimal
impl Clone for TypeDecimal
Source§fn clone(&self) -> TypeDecimal
fn clone(&self) -> TypeDecimal
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for TypeDecimal
impl Debug for TypeDecimal
Source§impl<'de> Deserialize<'de> for TypeDecimal
impl<'de> Deserialize<'de> for TypeDecimal
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<TypeDecimal, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<TypeDecimal, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<TypeDecimal> for DialectSupportedTypesItem
impl From<TypeDecimal> for DialectSupportedTypesItem
Source§fn from(value: TypeDecimal) -> DialectSupportedTypesItem
fn from(value: TypeDecimal) -> DialectSupportedTypesItem
Converts to this type from the input type.
Source§impl From<TypeDecimal> for TypeDecimal
impl From<TypeDecimal> for TypeDecimal
Source§fn from(value: TypeDecimal) -> TypeDecimal
fn from(value: TypeDecimal) -> TypeDecimal
Converts to this type from the input type.
Source§impl PartialEq for TypeDecimal
impl PartialEq for TypeDecimal
Source§impl Serialize for TypeDecimal
impl Serialize for TypeDecimal
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for TypeDecimal
Source§impl TryFrom<TypeDecimal> for TypeDecimal
impl TryFrom<TypeDecimal> for TypeDecimal
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Source§fn try_from(value: TypeDecimal) -> Result<TypeDecimal, ConversionError>
fn try_from(value: TypeDecimal) -> Result<TypeDecimal, ConversionError>
Performs the conversion.
Auto Trait Implementations§
impl Forget for TypeDecimal
impl Freeze for TypeDecimalwhere
*const LeafNode<String, Value> is !null: Freeze,
PhantomData<(Owned, LeafOrInternal)>: Freeze,
PhantomData<Box<(String, Value)>>: Freeze,
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
PhantomData<Value>: Freeze,
impl Move for TypeDecimal
impl RefUnwindSafe for TypeDecimal
impl Send for TypeDecimal
impl Sync for TypeDecimal
impl Unpin for TypeDecimal
impl UnsafeUnpin for TypeDecimalwhere
*const LeafNode<String, Value> is !null: UnsafeUnpin,
PhantomData<(Owned, LeafOrInternal)>: UnsafeUnpin,
PhantomData<Box<(String, Value)>>: UnsafeUnpin,
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<Value>: UnsafeUnpin,
impl UnwindSafe for TypeDecimal
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