pub struct AppTransaction {
pub app_id: Option<u64>,
pub app_transaction_id: String,
pub app_version: String,
pub app_version_id: Option<u64>,
pub bundle_id: String,
pub environment: AppStoreEnvironment,
pub original_app_version: String,
pub original_purchase_date: String,
pub original_platform: Option<AppStorePlatform>,
pub preorder_date: Option<String>,
pub json_representation: Vec<u8>,
}Expand description
Wraps StoreKit.AppTransaction.
Fields§
§app_id: Option<u64>App identifier reported by StoreKit.
app_transaction_id: StringApp transaction identifier reported by StoreKit.
app_version: StringApp version reported by StoreKit.
app_version_id: Option<u64>App version identifier reported by StoreKit.
bundle_id: StringBundle identifier reported by StoreKit.
environment: AppStoreEnvironmentEnvironment reported by StoreKit.
original_app_version: StringOriginal app version reported by StoreKit.
original_purchase_date: StringOriginal purchase date reported by StoreKit.
original_platform: Option<AppStorePlatform>Original platform reported by StoreKit.
preorder_date: Option<String>Preorder date reported by StoreKit.
json_representation: Vec<u8>Decoded JSON representation returned by StoreKit.
Implementations§
Source§impl AppTransaction
impl AppTransaction
Fetches StoreKit.AppTransaction.shared.
Sourcepub fn refresh() -> Result<VerificationResult<Self>, StoreKitError>
pub fn refresh() -> Result<VerificationResult<Self>, StoreKitError>
Fetches StoreKit.AppTransaction.refresh().
Trait Implementations§
Source§impl Clone for AppTransaction
impl Clone for AppTransaction
Source§fn clone(&self) -> AppTransaction
fn clone(&self) -> AppTransaction
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 AppTransaction
impl Debug for AppTransaction
Source§impl PartialEq for AppTransaction
impl PartialEq for AppTransaction
Source§fn eq(&self, other: &AppTransaction) -> bool
fn eq(&self, other: &AppTransaction) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for AppTransaction
impl StructuralPartialEq for AppTransaction
Auto Trait Implementations§
impl Freeze for AppTransaction
impl RefUnwindSafe for AppTransaction
impl Send for AppTransaction
impl Sync for AppTransaction
impl Unpin for AppTransaction
impl UnsafeUnpin for AppTransaction
impl UnwindSafe for AppTransaction
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