Struct mailchimp_api::types::ECommercePromoRule
source · pub struct ECommercePromoRule {
pub amount: f64,
pub created_at_foreign: Option<DateTime<Utc>>,
pub description: String,
pub enabled: bool,
pub ends_at: Option<DateTime<Utc>>,
pub id: String,
pub starts_at: Option<DateTime<Utc>>,
pub target: Target,
pub title: String,
pub type_: OrdersPromosType,
pub updated_at_foreign: Option<DateTime<Utc>>,
}
Expand description
Information about an Ecommerce Store’s specific Promo Rule.
Fields
amount: f64
The price of a product variant.
created_at_foreign: Option<DateTime<Utc>>
Information about an Ecommerce Store’s specific Promo Rule.
description: String
The name of the folder.
enabled: bool
Information about an Ecommerce Store’s specific Promo Rule.
ends_at: Option<DateTime<Utc>>
Information about an Ecommerce Store’s specific Promo Rule.
id: String
The name of the folder.
starts_at: Option<DateTime<Utc>>
Information about an Ecommerce Store’s specific Promo Rule.
target: Target
The target that the discount applies to.
title: String
Information about an Ecommerce Store’s specific Promo Rule.
type_: OrdersPromosType
Type of discount. For free shipping set type to fixed
updated_at_foreign: Option<DateTime<Utc>>
Information about an Ecommerce Store’s specific Promo Rule.
Trait Implementations
sourceimpl Clone for ECommercePromoRule
impl Clone for ECommercePromoRule
sourcefn clone(&self) -> ECommercePromoRule
fn clone(&self) -> ECommercePromoRule
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 moresourceimpl Debug for ECommercePromoRule
impl Debug for ECommercePromoRule
sourceimpl<'de> Deserialize<'de> for ECommercePromoRule
impl<'de> Deserialize<'de> for ECommercePromoRule
sourcefn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
sourceimpl JsonSchema for ECommercePromoRule
impl JsonSchema for ECommercePromoRule
sourcefn schema_name() -> String
fn schema_name() -> String
The name of the generated JSON Schema. Read more
sourcefn json_schema(gen: &mut SchemaGenerator) -> Schema
fn json_schema(gen: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
sourcefn is_referenceable() -> bool
fn is_referenceable() -> bool
Whether JSON Schemas generated for this type should be re-used where possible using the
$ref
keyword. Read moresourceimpl PartialEq<ECommercePromoRule> for ECommercePromoRule
impl PartialEq<ECommercePromoRule> for ECommercePromoRule
sourcefn eq(&self, other: &ECommercePromoRule) -> bool
fn eq(&self, other: &ECommercePromoRule) -> bool
sourceimpl Serialize for ECommercePromoRule
impl Serialize for ECommercePromoRule
impl StructuralPartialEq for ECommercePromoRule
Auto Trait Implementations
impl RefUnwindSafe for ECommercePromoRule
impl Send for ECommercePromoRule
impl Sync for ECommercePromoRule
impl Unpin for ECommercePromoRule
impl UnwindSafe for ECommercePromoRule
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
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