pub struct UpdateProduct<'a> {
Show 13 fields pub active: Option<bool>, pub default_price: Option<&'a str>, pub description: Option<&'a str>, pub expand: &'a [&'a str], pub images: Option<Vec<String>>, pub metadata: Option<Metadata>, pub name: Option<&'a str>, pub package_dimensions: Option<PackageDimensions>, pub shippable: Option<bool>, pub statement_descriptor: Option<&'a str>, pub tax_code: Option<String>, pub unit_label: Option<&'a str>, pub url: Option<String>,
}
Expand description

The parameters for Product::update.

Fields

active: Option<bool>

Whether the product is available for purchase.

default_price: Option<&'a str>

The ID of the Price object that is the default price for this product.

description: Option<&'a str>

The product’s description, meant to be displayable to the customer.

Use this field to optionally store a long form explanation of the product being sold for your own rendering purposes.

expand: &'a [&'a str]

Specifies which fields in the response should be expanded.

images: Option<Vec<String>>

A list of up to 8 URLs of images for this product, meant to be displayable to the customer.

metadata: Option<Metadata>

Set of key-value pairs that you can attach to an object.

This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to metadata.

name: Option<&'a str>

The product’s name, meant to be displayable to the customer.

package_dimensions: Option<PackageDimensions>

The dimensions of this product for shipping purposes.

shippable: Option<bool>

Whether this product is shipped (i.e., physical goods).

statement_descriptor: Option<&'a str>

An arbitrary string to be displayed on your customer’s credit card or bank statement.

While most banks display this information consistently, some may display it incorrectly or not at all. This may be up to 22 characters. The statement description may not include <, >, \, ", ' characters, and will appear on your customer’s statement in capital letters. Non-ASCII characters are automatically stripped. It must contain at least one letter. May only be set if type=service.

tax_code: Option<String>

A tax code ID.

unit_label: Option<&'a str>

A label that represents units of this product in Stripe and on customers’ receipts and invoices.

When set, this will be included in associated invoice line item descriptions. May only be set if type=service.

url: Option<String>

A URL of a publicly-accessible webpage for this product.

Implementations

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Returns the “default value” for a type. Read more

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Should always be Self

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more