pub struct PriceAnnotationData {
pub is_total: bool,
pub amount: Option<AmountData>,
pub number: Option<String>,
pub currency: Option<String>,
}Expand description
Price annotation data.
Represents price annotations like @ 100 USD or @@ 1000 USD (total price).
Fields§
§is_total: boolWhether this is a total price (@@) vs per-unit (@).
amount: Option<AmountData>The price amount (optional for incomplete/empty prices).
number: Option<String>The number only (for incomplete prices).
currency: Option<String>The currency only (for incomplete prices).
Trait Implementations§
Source§impl Clone for PriceAnnotationData
impl Clone for PriceAnnotationData
Source§fn clone(&self) -> PriceAnnotationData
fn clone(&self) -> PriceAnnotationData
Returns a duplicate 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 PriceAnnotationData
impl Debug for PriceAnnotationData
Source§impl<'de> Deserialize<'de> for PriceAnnotationData
impl<'de> Deserialize<'de> for PriceAnnotationData
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
Auto Trait Implementations§
impl Freeze for PriceAnnotationData
impl RefUnwindSafe for PriceAnnotationData
impl Send for PriceAnnotationData
impl Sync for PriceAnnotationData
impl Unpin for PriceAnnotationData
impl UnsafeUnpin for PriceAnnotationData
impl UnwindSafe for PriceAnnotationData
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