pub enum VerificationResult<T> {
Verified {
payload: T,
metadata: VerificationMetadata,
},
Unverified {
payload: T,
metadata: VerificationMetadata,
failure: VerificationFailure,
},
}Variants§
Implementations§
Source§impl VerificationResult<Transaction>
impl VerificationResult<Transaction>
pub fn advanced_commerce_info( &self, ) -> Result<Option<TransactionAdvancedCommerceInfo>, StoreKitError>
Source§impl VerificationResult<RenewalInfo>
impl VerificationResult<RenewalInfo>
pub fn advanced_commerce_info( &self, ) -> Result<Option<RenewalInfoAdvancedCommerceInfo>, StoreKitError>
Source§impl<T> VerificationResult<T>
impl<T> VerificationResult<T>
pub const fn is_verified(&self) -> bool
pub const fn payload(&self) -> &T
pub fn into_payload(self) -> T
pub const fn metadata(&self) -> &VerificationMetadata
pub const fn verification_failure(&self) -> Option<&VerificationFailure>
pub fn into_parts( self, ) -> (T, VerificationMetadata, Option<VerificationFailure>)
pub fn jws_representation(&self) -> &str
Trait Implementations§
Source§impl<T: Clone> Clone for VerificationResult<T>
impl<T: Clone> Clone for VerificationResult<T>
Source§fn clone(&self) -> VerificationResult<T>
fn clone(&self) -> VerificationResult<T>
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<T: Debug> Debug for VerificationResult<T>
impl<T: Debug> Debug for VerificationResult<T>
Source§impl<T: PartialEq> PartialEq for VerificationResult<T>
impl<T: PartialEq> PartialEq for VerificationResult<T>
Source§fn eq(&self, other: &VerificationResult<T>) -> bool
fn eq(&self, other: &VerificationResult<T>) -> bool
Tests for
self and other values to be equal, and is used by ==.impl<T: Eq> Eq for VerificationResult<T>
impl<T> StructuralPartialEq for VerificationResult<T>
Auto Trait Implementations§
impl<T> Freeze for VerificationResult<T>where
T: Freeze,
impl<T> RefUnwindSafe for VerificationResult<T>where
T: RefUnwindSafe,
impl<T> Send for VerificationResult<T>where
T: Send,
impl<T> Sync for VerificationResult<T>where
T: Sync,
impl<T> Unpin for VerificationResult<T>where
T: Unpin,
impl<T> UnsafeUnpin for VerificationResult<T>where
T: UnsafeUnpin,
impl<T> UnwindSafe for VerificationResult<T>where
T: 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