pub struct ProductPreview {
pub id: Option<ProductID>,
pub name: String,
pub description: Option<String>,
pub type: CatalogType,
pub tax_category: TaxCategory,
pub image_url: Option<String>,
pub custom_data: Option<Value>,
pub status: Status,
pub import_meta: Option<ImportMeta>,
pub created_at: DateTime<Utc>,
pub updated_at: DateTime<Utc>,
}Expand description
Represents a product (preview) entity.
Fields§
§id: Option<ProductID>Unique Paddle ID for this product, prefixed with pro_.
The value is null for custom products being previewed.
name: StringName of this product.
description: Option<String>Short description for this product.
type: CatalogTypeType of item. Standard items are considered part of your catalog and are shown on the Paddle dashboard.
tax_category: TaxCategoryTax category for this product. Used for charging the correct rate of tax. Selected tax category must be enabled on your Paddle account.
image_url: Option<String>Image for this product. Included in the checkout and on some customer documents.
custom_data: Option<Value>Your own structured key-value data.
status: StatusWhether this entity can be used in Paddle.
import_meta: Option<ImportMeta>Import information for this entity. null if this entity is not imported.
created_at: DateTime<Utc>RFC 3339 datetime string of when this entity was created. Set automatically by Paddle.
updated_at: DateTime<Utc>RFC 3339 datetime string of when this entity was updated. Set automatically by Paddle.
Trait Implementations§
Source§impl Clone for ProductPreview
impl Clone for ProductPreview
Source§fn clone(&self) -> ProductPreview
fn clone(&self) -> ProductPreview
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more