pub struct RedeemCouponRequest {
pub code: String,
}Expand description
Redeems a coupon for the organization identified by the path. The org is
taken from the route (:org); the body carries only the coupon code.
JSON schema
{
"title": "RedeemCouponRequest",
"description": "Redeems a coupon for the organization identified by the
path. The org is taken from the route (`:org`); the body carries only
the coupon code.",
"type": "object",
"required": [
"code"
],
"properties": {
"code": {
"description": "The coupon code to redeem.",
"type": "string"
}
}
}Fields§
§code: StringThe coupon code to redeem.
Trait Implementations§
Source§impl Clone for RedeemCouponRequest
impl Clone for RedeemCouponRequest
Source§fn clone(&self) -> RedeemCouponRequest
fn clone(&self) -> RedeemCouponRequest
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 RedeemCouponRequest
impl Debug for RedeemCouponRequest
Source§impl<'de> Deserialize<'de> for RedeemCouponRequest
impl<'de> Deserialize<'de> for RedeemCouponRequest
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<RedeemCouponRequest, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<RedeemCouponRequest, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for RedeemCouponRequest
impl Serialize for RedeemCouponRequest
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 RedeemCouponRequest
impl RefUnwindSafe for RedeemCouponRequest
impl Send for RedeemCouponRequest
impl Sync for RedeemCouponRequest
impl Unpin for RedeemCouponRequest
impl UnsafeUnpin for RedeemCouponRequest
impl UnwindSafe for RedeemCouponRequest
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