pub struct Product {Show 14 fields
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 metadata: HashMap<String, String>,
pub prices: Vec<Price>,
pub benefits: Vec<Benefit>,
pub medias: Vec<Media>,
pub attached_custom_fields: Vec<AttachedCustomField>,
}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.
metadata: HashMap<String, String>§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.
attached_custom_fields: Vec<AttachedCustomField>List of custom fields attached to the product.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Product
impl<'de> Deserialize<'de> for Product
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 Product
impl RefUnwindSafe for Product
impl Send for Product
impl Sync for Product
impl Unpin for Product
impl UnwindSafe for Product
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