pub struct ProductUpdate {
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 status: Status,
}
Expand description
Represents a product entity when updating products.
Fields§
§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.
status: Status
Whether this entity can be used in Paddle.
Trait Implementations§
Source§impl Clone for ProductUpdate
impl Clone for ProductUpdate
Source§fn clone(&self) -> ProductUpdate
fn clone(&self) -> ProductUpdate
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 ProductUpdate
impl Debug for ProductUpdate
Source§impl<'de> Deserialize<'de> for ProductUpdate
impl<'de> Deserialize<'de> for ProductUpdate
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 ProductUpdate
impl RefUnwindSafe for ProductUpdate
impl Send for ProductUpdate
impl Sync for ProductUpdate
impl Unpin for ProductUpdate
impl UnwindSafe for ProductUpdate
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