Struct amq_protocol_types::DecimalValue
source · pub struct DecimalValue {
pub scale: ShortShortUInt,
pub value: LongUInt,
}
Expand description
A Decimal value composed of a scale and a value
Fields§
§scale: ShortShortUInt
The scale of the value
value: LongUInt
The actual value
Trait Implementations§
source§impl Clone for DecimalValue
impl Clone for DecimalValue
source§fn clone(&self) -> DecimalValue
fn clone(&self) -> DecimalValue
Returns a copy of the value. Read more
1.0.0 · 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 DecimalValue
impl Debug for DecimalValue
source§impl<'de> Deserialize<'de> for DecimalValue
impl<'de> Deserialize<'de> for DecimalValue
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<DecimalValue> for AMQPValue
impl From<DecimalValue> for AMQPValue
source§fn from(v: DecimalValue) -> Self
fn from(v: DecimalValue) -> Self
Converts to this type from the input type.
source§impl Hash for DecimalValue
impl Hash for DecimalValue
source§impl PartialEq for DecimalValue
impl PartialEq for DecimalValue
source§fn eq(&self, other: &DecimalValue) -> bool
fn eq(&self, other: &DecimalValue) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for DecimalValue
impl Serialize for DecimalValue
impl Copy for DecimalValue
impl Eq for DecimalValue
impl StructuralPartialEq for DecimalValue
Auto Trait Implementations§
impl Freeze for DecimalValue
impl RefUnwindSafe for DecimalValue
impl Send for DecimalValue
impl Sync for DecimalValue
impl Unpin for DecimalValue
impl UnwindSafe for DecimalValue
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