pub struct Product {
pub id: String,
pub display_price: String,
pub title: String,
pub description: String,
}Expand description
A product as the store describes it, in the user’s locale and currency.
Fields§
§id: StringStore product identifier, as configured in App Store Connect or the Play Console.
display_price: StringPrice formatted by the store for the user’s storefront — “$34.99”, “34,99 €”, “¥5,000”. Always display this string; never format a price yourself, and never hard-code one. Stores localize currency, separators and placement, and they apply regional price tiers.
title: StringDisplay name configured in the store.
description: StringDescription configured in the store.
Trait Implementations§
impl Eq for Product
impl StructuralPartialEq for Product
Auto Trait Implementations§
impl Freeze for Product
impl RefUnwindSafe for Product
impl Send for Product
impl Sync for Product
impl Unpin for Product
impl UnsafeUnpin for Product
impl UnwindSafe for Product
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