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
sourceimpl Clone for DecimalValue
impl Clone for DecimalValue
sourcefn clone(&self) -> DecimalValue
fn clone(&self) -> DecimalValue
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for DecimalValue
impl Debug for DecimalValue
sourceimpl<'de> Deserialize<'de> for DecimalValue
impl<'de> Deserialize<'de> for DecimalValue
sourcefn 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
sourceimpl From<DecimalValue> for AMQPValue
impl From<DecimalValue> for AMQPValue
sourcefn from(v: DecimalValue) -> Self
fn from(v: DecimalValue) -> Self
Performs the conversion.
sourceimpl Hash for DecimalValue
impl Hash for DecimalValue
sourceimpl PartialEq<DecimalValue> for DecimalValue
impl PartialEq<DecimalValue> for DecimalValue
sourcefn 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 ==
. Read more
sourcefn ne(&self, other: &DecimalValue) -> bool
fn ne(&self, other: &DecimalValue) -> bool
This method tests for !=
.
sourceimpl Serialize for DecimalValue
impl Serialize for DecimalValue
impl Copy for DecimalValue
impl Eq for DecimalValue
impl StructuralEq for DecimalValue
impl StructuralPartialEq for DecimalValue
Auto Trait Implementations
impl RefUnwindSafe for DecimalValue
impl Send for DecimalValue
impl Sync for DecimalValue
impl Unpin for DecimalValue
impl UnwindSafe for DecimalValue
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more