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