pub struct OneTimeProductDiscountedOffer {
pub end_time: Option<DateTime<Utc>>,
pub redemption_limit: Option<i64>,
pub start_time: Option<DateTime<Utc>>,
}Expand description
Configuration specific to discounted offers.
This type is not used in any activity, and only used as part of another schema.
Fields§
§end_time: Option<DateTime<Utc>>Time when the offer will stop being available.
redemption_limit: Option<i64>Optional. The number of times this offer can be redeemed. If unset or set to 0, allows for unlimited offer redemptions. Otherwise must be a number between 1 and 50 inclusive.
start_time: Option<DateTime<Utc>>Time when the offer will start being available.
Trait Implementations§
Source§impl Clone for OneTimeProductDiscountedOffer
impl Clone for OneTimeProductDiscountedOffer
Source§fn clone(&self) -> OneTimeProductDiscountedOffer
fn clone(&self) -> OneTimeProductDiscountedOffer
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 OneTimeProductDiscountedOffer
impl Default for OneTimeProductDiscountedOffer
Source§fn default() -> OneTimeProductDiscountedOffer
fn default() -> OneTimeProductDiscountedOffer
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for OneTimeProductDiscountedOffer
impl<'de> Deserialize<'de> for OneTimeProductDiscountedOffer
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 OneTimeProductDiscountedOffer
Auto Trait Implementations§
impl Freeze for OneTimeProductDiscountedOffer
impl RefUnwindSafe for OneTimeProductDiscountedOffer
impl Send for OneTimeProductDiscountedOffer
impl Sync for OneTimeProductDiscountedOffer
impl Unpin for OneTimeProductDiscountedOffer
impl UnwindSafe for OneTimeProductDiscountedOffer
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