pub struct ProductCreate {
pub id: ProductID,
pub name: Option<String>,
pub description: Option<String>,
pub type: CatalogType,
pub tax_category: TaxCategory,
pub image_url: Option<String>,
pub custom_data: Option<HashMap<String, String>>,
pub import_meta: ImportMeta,
}
Expand description
Represents a product entity when creating products.
Fields§
§id: ProductID
Unique Paddle ID for this product, prefixed with pro_
.
name: Option<String>
Name of this product.
description: Option<String>
Short description for this product.
type: CatalogType
Type of item. Standard items are considered part of your catalog and are shown on the Paddle dashboard.
tax_category: TaxCategory
Tax 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<HashMap<String, String>>
Your own structured key-value data.
import_meta: ImportMeta
Import information for this entity. null
if this entity is not imported.
Trait Implementations§
Source§impl Clone for ProductCreate
impl Clone for ProductCreate
Source§fn clone(&self) -> ProductCreate
fn clone(&self) -> ProductCreate
Returns a copy 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 Debug for ProductCreate
impl Debug for ProductCreate
Source§impl<'de> Deserialize<'de> for ProductCreate
impl<'de> Deserialize<'de> for ProductCreate
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 ProductCreate
impl RefUnwindSafe for ProductCreate
impl Send for ProductCreate
impl Sync for ProductCreate
impl Unpin for ProductCreate
impl UnwindSafe for ProductCreate
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