Struct lapin_async::types::DecimalValue
[−]
pub struct DecimalValue { pub scale: u8, pub value: u32, }
Fields
scale: u8
value: u32
Trait Implementations
impl<'de> Deserialize<'de> for DecimalValue
fn deserialize<__D>(
__deserializer: __D
) -> Result<DecimalValue, <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>,
__deserializer: __D
) -> Result<DecimalValue, <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>,
impl Serialize for DecimalValue
fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error> where
__S: Serializer,
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error> where
__S: Serializer,
impl PartialEq<DecimalValue> for DecimalValue
fn eq(&self, __arg_0: &DecimalValue) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &DecimalValue) -> bool
This method tests for !=
.
impl Debug for DecimalValue
fn fmt(&self, __arg_0: &mut Formatter) -> Result<(), Error>
Formats the value using the given formatter.
impl Clone for DecimalValue
fn clone(&self) -> DecimalValue
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more