pub struct CreateGiftCard {
pub code: Option<String>,
pub initial_balance: Decimal,
pub currency: CurrencyCode,
pub recipient_email: Option<String>,
pub sender_name: Option<String>,
pub message: Option<String>,
pub expires_at: Option<DateTime<Utc>>,
}Expand description
Input for creating a gift card
Fields§
§code: Option<String>Redemption code (auto-generated if not provided)
initial_balance: DecimalInitial balance
currency: CurrencyCodeCurrency code
recipient_email: Option<String>Recipient email address
sender_name: Option<String>Name of the sender
message: Option<String>Personal message from sender
expires_at: Option<DateTime<Utc>>When the gift card expires
Trait Implementations§
Source§impl Clone for CreateGiftCard
impl Clone for CreateGiftCard
Source§fn clone(&self) -> CreateGiftCard
fn clone(&self) -> CreateGiftCard
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 CreateGiftCard
impl Debug for CreateGiftCard
Source§impl<'de> Deserialize<'de> for CreateGiftCard
impl<'de> Deserialize<'de> for CreateGiftCard
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<CreateGiftCard, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<CreateGiftCard, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for CreateGiftCard
impl Serialize for CreateGiftCard
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
Auto Trait Implementations§
impl Freeze for CreateGiftCard
impl RefUnwindSafe for CreateGiftCard
impl Send for CreateGiftCard
impl Sync for CreateGiftCard
impl Unpin for CreateGiftCard
impl UnsafeUnpin for CreateGiftCard
impl UnwindSafe for CreateGiftCard
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