pub struct CastValueCodecConfigurationV1 {
pub data_type: MetadataV3,
pub rounding: Option<CastValueRoundingMode>,
pub out_of_range: Option<CastValueOutOfRangeMode>,
pub scalar_map: Option<CastValueScalarMap>,
}Expand description
cast_value codec configuration parameters (version 1.0).
Fields§
§data_type: MetadataV3The encoded data type.
rounding: Option<CastValueRoundingMode>The rounding mode used when an exact cast is not possible.
out_of_range: Option<CastValueOutOfRangeMode>The handling of out-of-range values.
scalar_map: Option<CastValueScalarMap>Optional exact scalar mappings applied before normal casting rules.
Trait Implementations§
Source§impl Clone for CastValueCodecConfigurationV1
impl Clone for CastValueCodecConfigurationV1
Source§fn clone(&self) -> CastValueCodecConfigurationV1
fn clone(&self) -> CastValueCodecConfigurationV1
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<'de> Deserialize<'de> for CastValueCodecConfigurationV1
impl<'de> Deserialize<'de> for CastValueCodecConfigurationV1
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<CastValueCodecConfigurationV1> for CastValueCodecConfiguration
impl From<CastValueCodecConfigurationV1> for CastValueCodecConfiguration
Source§fn from(value: CastValueCodecConfigurationV1) -> Self
fn from(value: CastValueCodecConfigurationV1) -> Self
Converts to this type from the input type.
impl StructuralPartialEq for CastValueCodecConfigurationV1
Auto Trait Implementations§
impl Freeze for CastValueCodecConfigurationV1
impl RefUnwindSafe for CastValueCodecConfigurationV1
impl Send for CastValueCodecConfigurationV1
impl Sync for CastValueCodecConfigurationV1
impl Unpin for CastValueCodecConfigurationV1
impl UnsafeUnpin for CastValueCodecConfigurationV1
impl UnwindSafe for CastValueCodecConfigurationV1
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