pub struct RedeemInput {
pub code: Option<String>,
pub instrument: Option<String>,
}Fields§
§code: Option<String>Code is the promo code from the path.
instrument: Option<String>Instrument identifies the payment method. It is the anti-farming key: one redemption per instrument, fleet-wide, and it is REQUIRED — an absent instrument is refused, never waved through.
Implementations§
Source§impl RedeemInput
impl RedeemInput
pub fn new() -> RedeemInput
Trait Implementations§
Source§impl Clone for RedeemInput
impl Clone for RedeemInput
Source§fn clone(&self) -> RedeemInput
fn clone(&self) -> RedeemInput
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 RedeemInput
impl Debug for RedeemInput
Source§impl Default for RedeemInput
impl Default for RedeemInput
Source§fn default() -> RedeemInput
fn default() -> RedeemInput
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for RedeemInput
impl<'de> Deserialize<'de> for RedeemInput
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 PartialEq for RedeemInput
impl PartialEq for RedeemInput
Source§impl Serialize for RedeemInput
impl Serialize for RedeemInput
impl StructuralPartialEq for RedeemInput
Auto Trait Implementations§
impl Freeze for RedeemInput
impl RefUnwindSafe for RedeemInput
impl Send for RedeemInput
impl Sync for RedeemInput
impl Unpin for RedeemInput
impl UnsafeUnpin for RedeemInput
impl UnwindSafe for RedeemInput
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