Struct astrolab_smart_coffee_types::digishop::menu::add_product_variant::AddProductVariantBody[][src]

pub struct AddProductVariantBody {
Show 13 fields pub product: String, pub names: Option<Vec<CreateProductVariantNameBody>>, pub descriptions: Option<Vec<CreateProductVariantDescriptionBody>>, pub barcode: Option<String>, pub sku: Option<String>, pub shipping_weight: Option<f64>, pub picture: Option<String>, pub copied_pictures: Option<Vec<CategoryProductCopiedPictureBody>>, pub price_difference: Option<f64>, pub discount_percentage: Option<i32>, pub sites: Option<Vec<ProductVariantSiteBody>>, pub options: Option<Vec<ProductVariantOptionBody>>, pub is_published: Option<bool>,
}

Fields

product: Stringnames: Option<Vec<CreateProductVariantNameBody>>descriptions: Option<Vec<CreateProductVariantDescriptionBody>>barcode: Option<String>sku: Option<String>shipping_weight: Option<f64>picture: Option<String>copied_pictures: Option<Vec<CategoryProductCopiedPictureBody>>price_difference: Option<f64>discount_percentage: Option<i32>sites: Option<Vec<ProductVariantSiteBody>>options: Option<Vec<ProductVariantOptionBody>>is_published: Option<bool>

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

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.

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)

recently added

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