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