pub struct UpdateOneTimeProductOfferStateRequest {
pub activate_one_time_product_offer_request: Option<ActivateOneTimeProductOfferRequest>,
pub cancel_one_time_product_offer_request: Option<CancelOneTimeProductOfferRequest>,
pub deactivate_one_time_product_offer_request: Option<DeactivateOneTimeProductOfferRequest>,
}Expand description
Request message to update the state of a one-time product offer.
This type is not used in any activity, and only used as part of another schema.
Fields§
§activate_one_time_product_offer_request: Option<ActivateOneTimeProductOfferRequest>Activates an offer. Once activated, the offer is available to users, as long as its conditions are met.
cancel_one_time_product_offer_request: Option<CancelOneTimeProductOfferRequest>Cancels an offer. Once cancelled, the offer is not available to users. Any pending orders related to this offer will be cancelled. This state transition is specific to pre-orders.
deactivate_one_time_product_offer_request: Option<DeactivateOneTimeProductOfferRequest>Deactivates an offer. Once deactivated, the offer is no longer available to users. This state transition is specific to discounted offers.
Trait Implementations§
Source§impl Clone for UpdateOneTimeProductOfferStateRequest
impl Clone for UpdateOneTimeProductOfferStateRequest
Source§fn clone(&self) -> UpdateOneTimeProductOfferStateRequest
fn clone(&self) -> UpdateOneTimeProductOfferStateRequest
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 Default for UpdateOneTimeProductOfferStateRequest
impl Default for UpdateOneTimeProductOfferStateRequest
Source§fn default() -> UpdateOneTimeProductOfferStateRequest
fn default() -> UpdateOneTimeProductOfferStateRequest
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for UpdateOneTimeProductOfferStateRequest
impl<'de> Deserialize<'de> for UpdateOneTimeProductOfferStateRequest
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
impl Part for UpdateOneTimeProductOfferStateRequest
Auto Trait Implementations§
impl Freeze for UpdateOneTimeProductOfferStateRequest
impl RefUnwindSafe for UpdateOneTimeProductOfferStateRequest
impl Send for UpdateOneTimeProductOfferStateRequest
impl Sync for UpdateOneTimeProductOfferStateRequest
impl Unpin for UpdateOneTimeProductOfferStateRequest
impl UnwindSafe for UpdateOneTimeProductOfferStateRequest
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