Struct stripe::UpdateProduct [−][src]
The parameters for Product::update
.
Fields
active: Option<bool>
Whether the product is available for purchase.
attributes: Option<Vec<String>>
A list of up to 5 alphanumeric attributes that each SKU can provide values for (e.g., ["color", "size"]
).
If a value for attributes
is specified, the list specified will replace the existing attributes list on this product.
Any attributes not present after the update will be deleted from the SKUs for this product.
caption: Option<&'a str>
A short one-line description of the product, meant to be displayable to the customer.
May only be set if type=good
.
deactivate_on: Option<Vec<String>>
An array of Connect application names or identifiers that should not be able to order the SKUs for this product.
May only be set if type=good
.
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.
Whenever this product is sold via a subscription, name will show up on associated invoice line item descriptions.
package_dimensions: Option<PackageDimensions>
The dimensions of this product for shipping purposes.
A SKU associated with this product can override this value by having its own package_dimensions
.
May only be set if type=good
.
shippable: Option<bool>
Whether this product is shipped (i.e., physical goods).
Defaults to true
.
May only be set if type=good
.
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
.
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<&'a str>
A URL of a publicly-accessible webpage for this product.
May only be set if type=good
.
Implementations
impl<'a> UpdateProduct<'a>
[src]
Trait Implementations
impl<'a> Clone for UpdateProduct<'a>
[src]
fn clone(&self) -> UpdateProduct<'a>
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl<'a> Debug for UpdateProduct<'a>
[src]
impl<'a> Default for UpdateProduct<'a>
[src]
fn default() -> UpdateProduct<'a>
[src]
impl<'a> Serialize for UpdateProduct<'a>
[src]
Auto Trait Implementations
impl<'a> RefUnwindSafe for UpdateProduct<'a>
[src]
impl<'a> Send for UpdateProduct<'a>
[src]
impl<'a> Sync for UpdateProduct<'a>
[src]
impl<'a> Unpin for UpdateProduct<'a>
[src]
impl<'a> UnwindSafe for UpdateProduct<'a>
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T> Instrument for T
[src]
pub fn instrument(self, span: Span) -> Instrumented<Self>
[src]
pub fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T> Instrument for T
[src]
pub fn instrument(self, span: Span) -> Instrumented<Self>
[src]
pub fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,
pub fn vzip(self) -> V
impl<T> WithSubscriber for T
[src]
pub fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
[src]
S: Into<Dispatch>,