pub struct VanityCode {
pub promotion_code: Option<String>,
}Expand description
A multiple use, predefined promotion code.
This type is not used in any activity, and only used as part of another schema.
Fields§
§promotion_code: Option<String>The promotion code.
Trait Implementations§
Source§impl Clone for VanityCode
impl Clone for VanityCode
Source§fn clone(&self) -> VanityCode
fn clone(&self) -> VanityCode
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for VanityCode
impl Debug for VanityCode
Source§impl Default for VanityCode
impl Default for VanityCode
Source§fn default() -> VanityCode
fn default() -> VanityCode
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for VanityCode
impl<'de> Deserialize<'de> for VanityCode
Source§fn 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
Source§impl Serialize for VanityCode
impl Serialize for VanityCode
impl Part for VanityCode
Auto Trait Implementations§
impl Freeze for VanityCode
impl RefUnwindSafe for VanityCode
impl Send for VanityCode
impl Sync for VanityCode
impl Unpin for VanityCode
impl UnwindSafe for VanityCode
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more