pub struct ConsumptionRequest {
pub customer_consented: Option<bool>,
pub consumption_percentage: Option<u32>,
pub delivery_status: Option<DeliveryStatus>,
pub refund_preference: Option<RefundPreference>,
pub sample_content_provided: bool,
}Expand description
The request body containing consumption information.
Fields§
§customer_consented: Option<bool>A Boolean value that indicates whether the customer consented to provide consumption data to the App Store.
consumption_percentage: Option<u32>An integer that indicates the percentage, in milliunits, of the In-App Purchase the customer consumed.
delivery_status: Option<DeliveryStatus>A value that indicates whether the app successfully delivered an in-app purchase that works properly.
refund_preference: Option<RefundPreference>A value that indicates your preference, based on your operational logic, as to whether Apple should grant the refund.
sample_content_provided: boolA Boolean value that indicates whether you provided, prior to its purchase, a free sample or trial of the content, or information about its functionality.
Trait Implementations§
Source§impl Clone for ConsumptionRequest
impl Clone for ConsumptionRequest
Source§fn clone(&self) -> ConsumptionRequest
fn clone(&self) -> ConsumptionRequest
Returns a duplicate of the value. Read more
1.0.0 · 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 ConsumptionRequest
impl Debug for ConsumptionRequest
Source§impl<'de> Deserialize<'de> for ConsumptionRequest
impl<'de> Deserialize<'de> for ConsumptionRequest
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Hash for ConsumptionRequest
impl Hash for ConsumptionRequest
Auto Trait Implementations§
impl Freeze for ConsumptionRequest
impl RefUnwindSafe for ConsumptionRequest
impl Send for ConsumptionRequest
impl Sync for ConsumptionRequest
impl Unpin for ConsumptionRequest
impl UnwindSafe for ConsumptionRequest
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