pub struct RewardElements {
pub balance: Option<i64>,
pub balance_type: Option<String>,
pub created_at: Option<String>,
pub description: Option<String>,
pub expires_on: Option<String>,
pub guid: Option<String>,
pub unit_type: Option<String>,
pub updated_at: Option<String>,
}Expand description
RewardElements
JSON schema
{
"properties": {
"balance": {
"examples": [
102
],
"type": "integer"
},
"balance_type": {
"examples": [
"EXPIRING_BALANCE"
],
"type": "string"
},
"created_at": {
"examples": [
"2020-01-28T21:09:01+0000"
],
"type": "string"
},
"description": {
"examples": [
"A description of the reward."
],
"type": "string"
},
"expires_on": {
"examples": [
"2020-02-28"
],
"type": "string"
},
"guid": {
"examples": [
"RWD-1234"
],
"type": "string"
},
"unit_type": {
"examples": [
"POINTS"
],
"type": "string"
},
"updated_at": {
"examples": [
"2023-06-01T19:18:06Z"
],
"type": "string"
}
}
}Fields§
§balance: Option<i64>§balance_type: Option<String>§created_at: Option<String>§description: Option<String>§expires_on: Option<String>§guid: Option<String>§unit_type: Option<String>§updated_at: Option<String>Trait Implementations§
Source§impl Clone for RewardElements
impl Clone for RewardElements
Source§fn clone(&self) -> RewardElements
fn clone(&self) -> RewardElements
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 RewardElements
impl Debug for RewardElements
Source§impl Default for RewardElements
impl Default for RewardElements
Source§impl<'de> Deserialize<'de> for RewardElements
impl<'de> Deserialize<'de> for RewardElements
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<&RewardElements> for RewardElements
impl From<&RewardElements> for RewardElements
Source§fn from(value: &RewardElements) -> Self
fn from(value: &RewardElements) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for RewardElements
impl RefUnwindSafe for RewardElements
impl Send for RewardElements
impl Sync for RewardElements
impl Unpin for RewardElements
impl UnwindSafe for RewardElements
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