pub struct AlertsInner {
pub id: Option<String>,
pub activation: Option<String>,
pub expiry: Option<String>,
pub mission: Box<Mission>,
pub reward_types: Vec<RewardType>,
}Fields§
§id: Option<String>unique identifier for this object/event/thing
activation: Option<String>ISO-8601 formatted timestamp for when the event began
expiry: Option<String>A timestamp in ISO 8601 format (YYYY-MM-DDTHH:MM:SSZ) representing a specific point in time. This format is commonly used in APIs to ensure consistent date and time representation. The timestamp is in UTC (Coordinated Universal Time) and does not include any timezone offset. It is used to represent events, deadlines, or any time-related information in a standardized way. Example: "2023-10-01T12:00:00Z" represents October 1, 2023, at 12:00 PM UTC.
mission: Box<Mission>Mission to be completed to earn the reward
reward_types: Vec<RewardType>Implementations§
Source§impl AlertsInner
impl AlertsInner
pub fn new(mission: Mission, reward_types: Vec<RewardType>) -> AlertsInner
Trait Implementations§
Source§impl Clone for AlertsInner
impl Clone for AlertsInner
Source§fn clone(&self) -> AlertsInner
fn clone(&self) -> AlertsInner
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 AlertsInner
impl Debug for AlertsInner
Source§impl Default for AlertsInner
impl Default for AlertsInner
Source§fn default() -> AlertsInner
fn default() -> AlertsInner
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for AlertsInner
impl<'de> Deserialize<'de> for AlertsInner
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 PartialEq for AlertsInner
impl PartialEq for AlertsInner
Source§impl Serialize for AlertsInner
impl Serialize for AlertsInner
impl StructuralPartialEq for AlertsInner
Auto Trait Implementations§
impl Freeze for AlertsInner
impl RefUnwindSafe for AlertsInner
impl Send for AlertsInner
impl Sync for AlertsInner
impl Unpin for AlertsInner
impl UnwindSafe for AlertsInner
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