pub struct RaidSchema {
pub code: String,
pub name: String,
pub description: Option<String>,
pub monster: String,
pub schedule: Box<RaidScheduleSchema>,
pub rewards: Option<Box<RaidRewardsSchema>>,
pub status: RaidStatus,
pub next_start_at: String,
pub participant_count: Option<u32>,
pub active_instance: Option<Box<RaidInstanceSchema>>,
pub latest_instance: Option<Box<RaidInstanceSchema>>,
}Fields§
§code: StringRaid code.
name: StringRaid name.
description: Option<String>Raid description.
monster: StringMonster code used for raid combat simulation.
schedule: Box<RaidScheduleSchema>Weekly raid opening schedule.
rewards: Option<Box<RaidRewardsSchema>>Reward rules for the raid.
status: RaidStatusCurrent overall raid status.
next_start_at: StringDatetime for the next scheduled raid opening in UTC.
participant_count: Option<u32>Number of distinct accounts that contributed to the active or latest raid instance.
active_instance: Option<Box<RaidInstanceSchema>>Currently active weekly raid instance, if any.
latest_instance: Option<Box<RaidInstanceSchema>>Latest weekly raid instance, active or finished.
Implementations§
Source§impl RaidSchema
impl RaidSchema
pub fn new( code: String, name: String, monster: String, schedule: RaidScheduleSchema, status: RaidStatus, next_start_at: String, ) -> RaidSchema
Trait Implementations§
Source§impl Clone for RaidSchema
impl Clone for RaidSchema
Source§fn clone(&self) -> RaidSchema
fn clone(&self) -> RaidSchema
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 RaidSchema
impl Debug for RaidSchema
Source§impl Default for RaidSchema
impl Default for RaidSchema
Source§fn default() -> RaidSchema
fn default() -> RaidSchema
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for RaidSchema
impl<'de> Deserialize<'de> for RaidSchema
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 RaidSchema
impl PartialEq for RaidSchema
Source§fn eq(&self, other: &RaidSchema) -> bool
fn eq(&self, other: &RaidSchema) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for RaidSchema
impl Serialize for RaidSchema
impl StructuralPartialEq for RaidSchema
Auto Trait Implementations§
impl Freeze for RaidSchema
impl RefUnwindSafe for RaidSchema
impl Send for RaidSchema
impl Sync for RaidSchema
impl Unpin for RaidSchema
impl UnsafeUnpin for RaidSchema
impl UnwindSafe for RaidSchema
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