pub struct CheckoutProduct {
pub created_at: DateTime<Utc>,
pub modified_at: Option<DateTime<Utc>>,
pub id: Uuid,
pub name: String,
pub description: Option<String>,
pub recurring_interval: Option<RecurringInterval>,
pub is_recurring: bool,
pub is_archived: bool,
pub organization_id: Uuid,
pub prices: Vec<Price>,
pub benefits: Vec<Benefit>,
pub medias: Vec<Media>,
}Fields§
§created_at: DateTime<Utc>Creation timestamp of the object.
modified_at: Option<DateTime<Utc>>Last modification timestamp of the object.
id: UuidThe ID of the product.
name: StringThe name of the product.
description: Option<String>The description of the product.
recurring_interval: Option<RecurringInterval>The recurring interval of the product. If None, the product is a one-time purchase.
is_recurring: boolWhether the product is a subscription.
is_archived: boolWhether the product is archived and no longer available.
organization_id: UuidThe ID of the organization owning the product.
prices: Vec<Price>List of prices for this product.
benefits: Vec<Benefit>List of benefits granted by the product.
medias: Vec<Media>List of medias associated to the product.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for CheckoutProduct
impl<'de> Deserialize<'de> for CheckoutProduct
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
Auto Trait Implementations§
impl Freeze for CheckoutProduct
impl RefUnwindSafe for CheckoutProduct
impl Send for CheckoutProduct
impl Sync for CheckoutProduct
impl Unpin for CheckoutProduct
impl UnwindSafe for CheckoutProduct
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