Struct stripe::Product[][src]

pub struct Product {
Show 16 fields pub id: ProductId, pub active: Option<Box<bool>>, pub created: Option<Timestamp>, pub deleted: bool, pub description: Option<Box<String>>, pub images: Option<Box<Vec<String>>>, pub livemode: Option<Box<bool>>, pub metadata: Metadata, pub name: Option<Box<String>>, pub package_dimensions: Option<Box<PackageDimensions>>, pub shippable: Option<Box<bool>>, pub statement_descriptor: Option<Box<String>>, pub tax_code: Option<Box<Expandable<TaxCode>>>, pub unit_label: Option<Box<String>>, pub updated: Option<Box<Timestamp>>, pub url: Option<Box<String>>,
}
Expand description

The resource representing a Stripe “Product”.

For more details see https://stripe.com/docs/api/products/object

Fields

id: ProductId

Unique identifier for the object.

active: Option<Box<bool>>

Whether the product is currently available for purchase.

created: Option<Timestamp>

Time at which the object was created.

Measured in seconds since the Unix epoch.

deleted: booldescription: Option<Box<String>>

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.

images: Option<Box<Vec<String>>>

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

livemode: Option<Box<bool>>

Has the value true if the object exists in live mode or the value false if the object exists in test mode.

metadata: 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.

name: Option<Box<String>>

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

Whenever this product is sold via a subscription, name will show up on associated invoice line item descriptions.

package_dimensions: Option<Box<PackageDimensions>>

The dimensions of this product for shipping purposes.

shippable: Option<Box<bool>>

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

statement_descriptor: Option<Box<String>>

Extra information about a product which will appear on your customer’s credit card statement.

In the case that multiple products are billed at once, the first statement descriptor will be used.

tax_code: Option<Box<Expandable<TaxCode>>>

A tax code ID.

unit_label: Option<Box<String>>

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.

updated: Option<Box<Timestamp>>

Time at which the object was last updated.

Measured in seconds since the Unix epoch.

url: Option<Box<String>>

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

Implementations

Returns a list of your products.

The products are returned sorted by creation date, with the most recently created products appearing first.

Creates a new product object.

Retrieves the details of an existing product.

Supply the unique product ID from either a product creation request or the product list, and Stripe will return the corresponding product information.

Updates the specific product by setting the values of the parameters passed.

Any parameters not provided will be left unchanged.

Delete a product.

Deleting a product is only possible if it has no prices associated with it. Additionally, deleting a product with type=good is only possible if it has no SKUs associated with it.

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

Deserialize this value from the given Serde deserializer. Read more

The canonical id type for this object.

The id of the object.

The object’s type, typically represented in wire format as the object property.

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

Performs the conversion.

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

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

Performs the conversion.

Should always be Self

The resulting type after obtaining ownership.

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

🔬 This is a nightly-only experimental API. (toowned_clone_into)

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

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