pub struct ExternalPurchaseCustomLink;Expand description
Helpers backed by StoreKit external purchase custom link APIs.
Implementations§
Source§impl ExternalPurchaseCustomLink
impl ExternalPurchaseCustomLink
Sourcepub fn is_eligible() -> Result<bool, StoreKitError>
pub fn is_eligible() -> Result<bool, StoreKitError>
Returns whether StoreKit reports that the custom link flow is eligible.
Sourcepub fn show_notice(
notice_type: ExternalPurchaseCustomLinkNoticeType,
) -> Result<ExternalPurchaseCustomLinkNoticeResult, StoreKitError>
pub fn show_notice( notice_type: ExternalPurchaseCustomLinkNoticeType, ) -> Result<ExternalPurchaseCustomLinkNoticeResult, StoreKitError>
Presents the StoreKit custom-link notice UI.
Sourcepub fn token(
token_type: &str,
) -> Result<Option<ExternalPurchaseCustomLinkToken>, StoreKitError>
pub fn token( token_type: &str, ) -> Result<Option<ExternalPurchaseCustomLinkToken>, StoreKitError>
Fetches a custom-link token from StoreKit.
Trait Implementations§
Source§impl Clone for ExternalPurchaseCustomLink
impl Clone for ExternalPurchaseCustomLink
Source§fn clone(&self) -> ExternalPurchaseCustomLink
fn clone(&self) -> ExternalPurchaseCustomLink
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 ExternalPurchaseCustomLink
impl Debug for ExternalPurchaseCustomLink
Source§impl Default for ExternalPurchaseCustomLink
impl Default for ExternalPurchaseCustomLink
Source§fn default() -> ExternalPurchaseCustomLink
fn default() -> ExternalPurchaseCustomLink
Returns the “default value” for a type. Read more
impl Copy for ExternalPurchaseCustomLink
Auto Trait Implementations§
impl Freeze for ExternalPurchaseCustomLink
impl RefUnwindSafe for ExternalPurchaseCustomLink
impl Send for ExternalPurchaseCustomLink
impl Sync for ExternalPurchaseCustomLink
impl Unpin for ExternalPurchaseCustomLink
impl UnsafeUnpin for ExternalPurchaseCustomLink
impl UnwindSafe for ExternalPurchaseCustomLink
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