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§fn clone(&self) -> Storefront
fn clone(&self) -> Storefront
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 Storefront
impl Debug for Storefront
Source§impl PartialEq for Storefront
impl PartialEq for Storefront
Source§fn eq(&self, other: &Storefront) -> bool
fn eq(&self, other: &Storefront) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for Storefront
impl StructuralPartialEq for Storefront
Auto Trait Implementations§
impl Freeze for Storefront
impl RefUnwindSafe for Storefront
impl Send for Storefront
impl Sync for Storefront
impl Unpin for Storefront
impl UnsafeUnpin for Storefront
impl UnwindSafe for Storefront
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