pub struct RaidInstanceSchema {
pub starts_at: String,
pub ends_at: String,
pub status: RaidStatus,
pub total_hp: u32,
pub remaining_hp: u32,
pub participant_count: Option<u32>,
pub ended_at: Option<String>,
pub result: Option<RaidInstanceResult>,
pub rewards_distributed_at: Option<String>,
}Fields§
§starts_at: StringWeekly raid opening datetime in UTC.
ends_at: StringWeekly raid planned closing datetime in UTC.
status: RaidStatusCurrent status of this weekly raid instance.
total_hp: u32Shared HP pool when this raid instance starts.
remaining_hp: u32Remaining shared HP pool for this raid instance.
participant_count: Option<u32>Number of accounts that contributed during this raid instance.
ended_at: Option<String>Datetime when this raid instance actually ended.
result: Option<RaidInstanceResult>Final result for this raid instance.
rewards_distributed_at: Option<String>Datetime when rewards were distributed for this raid instance.
Implementations§
Source§impl RaidInstanceSchema
impl RaidInstanceSchema
pub fn new( starts_at: String, ends_at: String, status: RaidStatus, total_hp: u32, remaining_hp: u32, ) -> RaidInstanceSchema
Trait Implementations§
Source§impl Clone for RaidInstanceSchema
impl Clone for RaidInstanceSchema
Source§fn clone(&self) -> RaidInstanceSchema
fn clone(&self) -> RaidInstanceSchema
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 RaidInstanceSchema
impl Debug for RaidInstanceSchema
Source§impl Default for RaidInstanceSchema
impl Default for RaidInstanceSchema
Source§fn default() -> RaidInstanceSchema
fn default() -> RaidInstanceSchema
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for RaidInstanceSchema
impl<'de> Deserialize<'de> for RaidInstanceSchema
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 RaidInstanceSchema
impl PartialEq for RaidInstanceSchema
Source§fn eq(&self, other: &RaidInstanceSchema) -> bool
fn eq(&self, other: &RaidInstanceSchema) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for RaidInstanceSchema
impl Serialize for RaidInstanceSchema
impl StructuralPartialEq for RaidInstanceSchema
Auto Trait Implementations§
impl Freeze for RaidInstanceSchema
impl RefUnwindSafe for RaidInstanceSchema
impl Send for RaidInstanceSchema
impl Sync for RaidInstanceSchema
impl Unpin for RaidInstanceSchema
impl UnsafeUnpin for RaidInstanceSchema
impl UnwindSafe for RaidInstanceSchema
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