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