Struct mailchimp_api::types::ECommercePromoRuleData
source · pub struct ECommercePromoRuleData {
pub amount: f64,
pub created_at_foreign: Option<DateTime<Utc>>,
pub description: String,
pub enabled: bool,
pub ends_at: Option<DateTime<Utc>>,
pub starts_at: Option<DateTime<Utc>>,
pub target: Option<Target>,
pub title: String,
pub type_: Option<OrdersPromosType>,
pub updated_at_foreign: Option<DateTime<Utc>>,
}
Expand description
Information about an Ecommerce Store’s specific Promo Rule.
Fields
amount: f64
Information about an Ecommerce Store’s specific Promo Rule.
created_at_foreign: Option<DateTime<Utc>>
Information about an Ecommerce Store’s specific Promo Rule.
description: String
Information about an Ecommerce Store’s specific Promo Rule.
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.
starts_at: Option<DateTime<Utc>>
Information about an Ecommerce Store’s specific Promo Rule.
target: Option<Target>
Information about an Ecommerce Store’s specific Promo Rule.
title: String
Information about an Ecommerce Store’s specific Promo Rule.
type_: Option<OrdersPromosType>
Information about an Ecommerce Store’s specific Promo Rule.
updated_at_foreign: Option<DateTime<Utc>>
Information about an Ecommerce Store’s specific Promo Rule.
Trait Implementations
sourceimpl Clone for ECommercePromoRuleData
impl Clone for ECommercePromoRuleData
sourcefn clone(&self) -> ECommercePromoRuleData
fn clone(&self) -> ECommercePromoRuleData
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 ECommercePromoRuleData
impl Debug for ECommercePromoRuleData
sourceimpl<'de> Deserialize<'de> for ECommercePromoRuleData
impl<'de> Deserialize<'de> for ECommercePromoRuleData
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 ECommercePromoRuleData
impl JsonSchema for ECommercePromoRuleData
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<ECommercePromoRuleData> for ECommercePromoRuleData
impl PartialEq<ECommercePromoRuleData> for ECommercePromoRuleData
sourcefn eq(&self, other: &ECommercePromoRuleData) -> bool
fn eq(&self, other: &ECommercePromoRuleData) -> bool
sourceimpl Serialize for ECommercePromoRuleData
impl Serialize for ECommercePromoRuleData
impl StructuralPartialEq for ECommercePromoRuleData
Auto Trait Implementations
impl RefUnwindSafe for ECommercePromoRuleData
impl Send for ECommercePromoRuleData
impl Sync for ECommercePromoRuleData
impl Unpin for ECommercePromoRuleData
impl UnwindSafe for ECommercePromoRuleData
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