pub struct OneTimeProductRentPurchaseOption {
pub expiration_period: Option<String>,
pub rental_period: Option<String>,
}Expand description
A purchase option that can be rented.
This type is not used in any activity, and only used as part of another schema.
Fields§
§expiration_period: Option<String>Optional. The amount of time the user has after starting consuming the entitlement before it is revoked. Specified in ISO 8601 format.
rental_period: Option<String>Required. The amount of time a user has the entitlement for. Starts at purchase flow completion. Specified in ISO 8601 format.
Trait Implementations§
Source§impl Clone for OneTimeProductRentPurchaseOption
impl Clone for OneTimeProductRentPurchaseOption
Source§fn clone(&self) -> OneTimeProductRentPurchaseOption
fn clone(&self) -> OneTimeProductRentPurchaseOption
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 OneTimeProductRentPurchaseOption
impl Default for OneTimeProductRentPurchaseOption
Source§fn default() -> OneTimeProductRentPurchaseOption
fn default() -> OneTimeProductRentPurchaseOption
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for OneTimeProductRentPurchaseOption
impl<'de> Deserialize<'de> for OneTimeProductRentPurchaseOption
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 OneTimeProductRentPurchaseOption
Auto Trait Implementations§
impl Freeze for OneTimeProductRentPurchaseOption
impl RefUnwindSafe for OneTimeProductRentPurchaseOption
impl Send for OneTimeProductRentPurchaseOption
impl Sync for OneTimeProductRentPurchaseOption
impl Unpin for OneTimeProductRentPurchaseOption
impl UnwindSafe for OneTimeProductRentPurchaseOption
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