Struct tdlib::types::LabeledPricePart
source · pub struct LabeledPricePart {
pub label: String,
pub amount: i64,
}
Expand description
Portion of the price of a product (e.g., “delivery cost”, “tax amount”)
Fields§
§label: String
Label for this portion of the product price
amount: i64
Currency amount in the smallest units of the currency
Trait Implementations§
source§impl Clone for LabeledPricePart
impl Clone for LabeledPricePart
source§fn clone(&self) -> LabeledPricePart
fn clone(&self) -> LabeledPricePart
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 LabeledPricePart
impl Debug for LabeledPricePart
source§impl Default for LabeledPricePart
impl Default for LabeledPricePart
source§fn default() -> LabeledPricePart
fn default() -> LabeledPricePart
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for LabeledPricePart
impl<'de> Deserialize<'de> for LabeledPricePart
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 PartialEq<LabeledPricePart> for LabeledPricePart
impl PartialEq<LabeledPricePart> for LabeledPricePart
source§fn eq(&self, other: &LabeledPricePart) -> bool
fn eq(&self, other: &LabeledPricePart) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for LabeledPricePart
impl Serialize for LabeledPricePart
impl StructuralPartialEq for LabeledPricePart
Auto Trait Implementations§
impl RefUnwindSafe for LabeledPricePart
impl Send for LabeledPricePart
impl Sync for LabeledPricePart
impl Unpin for LabeledPricePart
impl UnwindSafe for LabeledPricePart
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