pub struct RedeemCouponResponse {
pub balance_cents: i64,
pub credit_cents: i64,
}Expand description
The credit granted by the coupon and the organization’s resulting balance, both in cents.
JSON schema
{
"title": "RedeemCouponResponse",
"description": "The credit granted by the coupon and the organization's
resulting balance, both in cents.",
"type": "object",
"required": [
"balance_cents",
"credit_cents"
],
"properties": {
"balance_cents": {
"description": "The organization's balance after the credit, in
cents.",
"type": "integer"
},
"credit_cents": {
"description": "The credit granted by the coupon, in cents.",
"type": "integer"
}
}
}Fields§
§balance_cents: i64The organization’s balance after the credit, in cents.
credit_cents: i64The credit granted by the coupon, in cents.
Trait Implementations§
Source§impl Clone for RedeemCouponResponse
impl Clone for RedeemCouponResponse
Source§fn clone(&self) -> RedeemCouponResponse
fn clone(&self) -> RedeemCouponResponse
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 RedeemCouponResponse
impl Debug for RedeemCouponResponse
Source§impl<'de> Deserialize<'de> for RedeemCouponResponse
impl<'de> Deserialize<'de> for RedeemCouponResponse
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<RedeemCouponResponse, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<RedeemCouponResponse, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for RedeemCouponResponse
impl Serialize for RedeemCouponResponse
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 RedeemCouponResponse
impl RefUnwindSafe for RedeemCouponResponse
impl Send for RedeemCouponResponse
impl Sync for RedeemCouponResponse
impl Unpin for RedeemCouponResponse
impl UnsafeUnpin for RedeemCouponResponse
impl UnwindSafe for RedeemCouponResponse
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