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