pub struct ProductCreate<'a> { /* private fields */ }
Expand description
Request builder for creating a new product in Paddle API.
Implementations§
Source§impl<'a> ProductCreate<'a>
impl<'a> ProductCreate<'a>
pub fn new( client: &'a Paddle, name: impl Into<String>, tax_category: TaxCategory, ) -> Self
Sourcepub fn description(&mut self, description: impl Into<String>) -> &mut Self
pub fn description(&mut self, description: impl Into<String>) -> &mut Self
Set the product description.
Sourcepub fn catalog_type(&mut self, catalog_type: CatalogType) -> &mut Self
pub fn catalog_type(&mut self, catalog_type: CatalogType) -> &mut Self
Set the product catalog type.
Sourcepub fn image_url(&mut self, image_url: impl Into<String>) -> &mut Self
pub fn image_url(&mut self, image_url: impl Into<String>) -> &mut Self
Set the product image URL.
Sourcepub fn custom_data(&mut self, custom_data: HashMap<String, String>) -> &mut Self
pub fn custom_data(&mut self, custom_data: HashMap<String, String>) -> &mut Self
Set custom data for the product.
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for ProductCreate<'a>
impl<'a> RefUnwindSafe for ProductCreate<'a>
impl<'a> Send for ProductCreate<'a>
impl<'a> Sync for ProductCreate<'a>
impl<'a> Unpin for ProductCreate<'a>
impl<'a> UnwindSafe for ProductCreate<'a>
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