pub struct Storefront {
pub country_code: String,
pub id: String,
pub currency_code: Option<String>,
}Expand description
Wraps StoreKit.Storefront.
Fields§
§country_code: StringCountry code reported by StoreKit.
id: StringStoreKit identifier for this value.
currency_code: Option<String>Currency code reported by StoreKit.
Implementations§
Source§impl Storefront
impl Storefront
Sourcepub fn current() -> Result<Option<Self>, StoreKitError>
pub fn current() -> Result<Option<Self>, StoreKitError>
Fetches the current StoreKit.Storefront.
Sourcepub fn updates() -> Result<StorefrontStream, StoreKitError>
pub fn updates() -> Result<StorefrontStream, StoreKitError>
Creates a stream backed by StoreKit.Storefront updates.
Trait Implementations§
Source§impl Clone for Storefront
impl Clone for Storefront
Source§impl Debug for Storefront
impl Debug for Storefront
impl Eq for Storefront
Source§impl PartialEq for Storefront
impl PartialEq for Storefront
impl StructuralPartialEq for Storefront
Auto Trait Implementations§
impl Forget for Storefront
impl Freeze for Storefront
impl Move for Storefront
impl RefUnwindSafe for Storefront
impl Send for Storefrontwhere
RawVecInner: Send,
impl Sync for Storefrontwhere
RawVecInner: Sync,
impl Unpin for Storefront
impl UnsafeUnpin for Storefront
impl UnwindSafe for Storefrontwhere
RawVecInner: UnwindSafe,
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