Struct stripe::UpdateProduct
source · [−]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
sourceimpl<'a> UpdateProduct<'a>
impl<'a> UpdateProduct<'a>
Trait Implementations
sourceimpl<'a> Clone for UpdateProduct<'a>
impl<'a> Clone for UpdateProduct<'a>
sourcefn clone(&self) -> UpdateProduct<'a>
fn clone(&self) -> UpdateProduct<'a>
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl<'a> Debug for UpdateProduct<'a>
impl<'a> Debug for UpdateProduct<'a>
sourceimpl<'a> Default for UpdateProduct<'a>
impl<'a> Default for UpdateProduct<'a>
sourcefn default() -> UpdateProduct<'a>
fn default() -> UpdateProduct<'a>
Returns the “default value” for a type. Read more
sourceimpl<'a> Serialize for UpdateProduct<'a>
impl<'a> Serialize for UpdateProduct<'a>
Auto Trait Implementations
impl<'a> RefUnwindSafe for UpdateProduct<'a>
impl<'a> Send for UpdateProduct<'a>
impl<'a> Sync for UpdateProduct<'a>
impl<'a> Unpin for UpdateProduct<'a>
impl<'a> UnwindSafe for UpdateProduct<'a>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
fn vzip(self) -> V
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more