pub struct StoreContext {
pub bundle_identifier: Option<String>,
pub bundle_name: Option<String>,
pub bundle_version: Option<String>,
pub receipt_url: Option<String>,
pub can_make_payments: bool,
pub device_verification_id: Option<String>,
pub is_bundled: bool,
pub executable_path: Option<String>,
}Fields§
§bundle_identifier: Option<String>§bundle_name: Option<String>§bundle_version: Option<String>§receipt_url: Option<String>§can_make_payments: bool§device_verification_id: Option<String>§is_bundled: bool§executable_path: Option<String>Implementations§
Source§impl StoreContext
impl StoreContext
Sourcepub fn current() -> Result<Self, StoreKitError>
pub fn current() -> Result<Self, StoreKitError>
pub fn can_make_payments() -> Result<bool, StoreKitError>
pub fn device_verification_id() -> Result<Option<String>, StoreKitError>
pub fn current_products<I, S>( identifiers: I, ) -> Result<Vec<Product>, StoreKitError>
pub fn current_entitlements() -> Result<TransactionStream, StoreKitError>
pub fn transaction_updates() -> Result<TransactionStream, StoreKitError>
pub fn current_storefront() -> Result<Option<Storefront>, StoreKitError>
pub fn app_transaction() -> Result<VerificationResult<AppTransaction>, StoreKitError>
pub fn receipt() -> Result<Option<AppReceipt>, StoreKitError>
Trait Implementations§
Source§impl Clone for StoreContext
impl Clone for StoreContext
Source§fn clone(&self) -> StoreContext
fn clone(&self) -> StoreContext
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 StoreContext
impl Debug for StoreContext
Source§impl PartialEq for StoreContext
impl PartialEq for StoreContext
Source§fn eq(&self, other: &StoreContext) -> bool
fn eq(&self, other: &StoreContext) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for StoreContext
impl StructuralPartialEq for StoreContext
Auto Trait Implementations§
impl Freeze for StoreContext
impl RefUnwindSafe for StoreContext
impl Send for StoreContext
impl Sync for StoreContext
impl Unpin for StoreContext
impl UnsafeUnpin for StoreContext
impl UnwindSafe for StoreContext
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