pub struct GiftcardRedeemCodeResponse {
pub code: String,
pub data: GiftcardRedeemCodeResponseData,
pub message: String,
pub success: bool,
}
Expand description
GiftcardRedeemCodeResponse
JSON schema
{
"type": "object",
"required": [
"code",
"data",
"message",
"success"
],
"properties": {
"code": {
"examples": [
"000000"
],
"type": "string"
},
"data": {
"type": "object",
"required": [
"amount",
"identityNo",
"referenceNo",
"token"
],
"properties": {
"amount": {
"examples": [
"10"
],
"type": "string"
},
"identityNo": {
"examples": [
"10316281761814589440"
],
"type": "string"
},
"referenceNo": {
"examples": [
"0033002327977405"
],
"type": "string"
},
"token": {
"examples": [
"BNB"
],
"type": "string"
}
}
},
"message": {
"examples": [
"success"
],
"type": "string"
},
"success": {
"type": "boolean"
}
}
}
Fields§
§code: String
§data: GiftcardRedeemCodeResponseData
§message: String
§success: bool
Trait Implementations§
Source§impl Clone for GiftcardRedeemCodeResponse
impl Clone for GiftcardRedeemCodeResponse
Source§fn clone(&self) -> GiftcardRedeemCodeResponse
fn clone(&self) -> GiftcardRedeemCodeResponse
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 GiftcardRedeemCodeResponse
impl Debug for GiftcardRedeemCodeResponse
Source§impl<'de> Deserialize<'de> for GiftcardRedeemCodeResponse
impl<'de> Deserialize<'de> for GiftcardRedeemCodeResponse
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 From<&GiftcardRedeemCodeResponse> for GiftcardRedeemCodeResponse
impl From<&GiftcardRedeemCodeResponse> for GiftcardRedeemCodeResponse
Source§fn from(value: &GiftcardRedeemCodeResponse) -> Self
fn from(value: &GiftcardRedeemCodeResponse) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for GiftcardRedeemCodeResponse
impl RefUnwindSafe for GiftcardRedeemCodeResponse
impl Send for GiftcardRedeemCodeResponse
impl Sync for GiftcardRedeemCodeResponse
impl Unpin for GiftcardRedeemCodeResponse
impl UnwindSafe for GiftcardRedeemCodeResponse
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