pub struct UpdateProductParams {
pub metadata: HashMap<String, String>,
pub name: Option<String>,
pub description: Option<String>,
pub recurring_interval: Option<RecurringInterval>,
pub is_archived: Option<bool>,
pub prices: Vec<UpdatePriceParams>,
pub medias: Option<Vec<Uuid>>,
pub attached_custom_fields: Option<Vec<AttachedCustomFieldParams>>,
}Fields§
§metadata: HashMap<String, String>Key-value object allowing you to store additional information.
name: Option<String>The name of the product.
Minimum length: 3
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_archived: Option<bool>Whether the product is archived. If true, the product won’t be available for purchase anymore. Existing customers will still have access to their benefits, and subscriptions will continue normally.
prices: Vec<UpdatePriceParams>List of available prices for this product. If you want to keep existing prices, include them in the list with only the id.
medias: Option<Vec<Uuid>>List of file IDs. Each one must be on the same organization as the product, of type product_media and correctly uploaded.
attached_custom_fields: Option<Vec<AttachedCustomFieldParams>>List of custom fields to attach.
Trait Implementations§
Source§impl Default for UpdateProductParams
impl Default for UpdateProductParams
Source§fn default() -> UpdateProductParams
fn default() -> UpdateProductParams
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for UpdateProductParams
impl<'de> Deserialize<'de> for UpdateProductParams
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 UpdateProductParams
impl RefUnwindSafe for UpdateProductParams
impl Send for UpdateProductParams
impl Sync for UpdateProductParams
impl Unpin for UpdateProductParams
impl UnwindSafe for UpdateProductParams
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