pub struct GiftcardCreateCodeResponse {
pub code: String,
pub data: GiftcardCreateCodeResponseData,
pub message: String,
pub success: bool,
}
Expand description
GiftcardCreateCodeResponse
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: GiftcardCreateCodeResponseData
§message: String
§success: bool
Trait Implementations§
Source§impl Clone for GiftcardCreateCodeResponse
impl Clone for GiftcardCreateCodeResponse
Source§fn clone(&self) -> GiftcardCreateCodeResponse
fn clone(&self) -> GiftcardCreateCodeResponse
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 GiftcardCreateCodeResponse
impl Debug for GiftcardCreateCodeResponse
Source§impl<'de> Deserialize<'de> for GiftcardCreateCodeResponse
impl<'de> Deserialize<'de> for GiftcardCreateCodeResponse
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<&GiftcardCreateCodeResponse> for GiftcardCreateCodeResponse
impl From<&GiftcardCreateCodeResponse> for GiftcardCreateCodeResponse
Source§fn from(value: &GiftcardCreateCodeResponse) -> Self
fn from(value: &GiftcardCreateCodeResponse) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for GiftcardCreateCodeResponse
impl RefUnwindSafe for GiftcardCreateCodeResponse
impl Send for GiftcardCreateCodeResponse
impl Sync for GiftcardCreateCodeResponse
impl Unpin for GiftcardCreateCodeResponse
impl UnwindSafe for GiftcardCreateCodeResponse
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