Struct telexide_fork::model::LabeledPrice
source · pub struct LabeledPrice {
pub label: String,
pub amount: i64,
}Expand description
This object represents a portion of the price for goods or services.
Fields§
§label: StringPortion label
amount: i64Price of the product in the smallest units of the currency (integer, not float). For example, for a price of US$ 1.45 pass amount = 145. See the exp parameter in currencies.json, it shows the number of digits past the decimal point for each currency (2 for the majority of currencies).
Trait Implementations§
source§impl Clone for LabeledPrice
impl Clone for LabeledPrice
source§fn clone(&self) -> LabeledPrice
fn clone(&self) -> LabeledPrice
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 LabeledPrice
impl Debug for LabeledPrice
source§impl<'de> Deserialize<'de> for LabeledPrice
impl<'de> Deserialize<'de> for LabeledPrice
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<LabeledPrice> for LabeledPrice
impl PartialEq<LabeledPrice> for LabeledPrice
source§fn eq(&self, other: &LabeledPrice) -> bool
fn eq(&self, other: &LabeledPrice) -> bool
This method tests for
self and other values to be equal, and is used
by ==.