pub struct CommunityGoalEventGoal {Show 14 fields
pub cgid: u64,
pub title: String,
pub system_name: String,
pub market_name: String,
pub expiry: DateTime<Utc>,
pub is_complete: bool,
pub current_total: u64,
pub player_contribution: u64,
pub number_of_contributors: u64,
pub top_rank_size: u8,
pub player_in_top_rank: bool,
pub tier_reached: Option<String>,
pub player_percentile_band: u8,
pub bonus: Option<u64>,
}
Expand description
An entry for a currently active community goal.
Fields§
§cgid: u64
The id of the community goal.
title: String
The name of the community goal.
system_name: String
The name of the system the community goal is located in.
market_name: String
The market or station name the community goal is located at.
expiry: DateTime<Utc>
When the community goal is planned to end.
is_complete: bool
Whether the community goal has been completed.
current_total: u64
The current total contributions made by all players for this community goal.
player_contribution: u64
How much the current player has contributed to the community goal.
number_of_contributors: u64
Thw number of players that have contributed to the community goal.
top_rank_size: u8
The percentage of top players that are considered part of the top rank.
player_in_top_rank: bool
Whether the current player is currently in the top rank.
tier_reached: Option<String>
The highest rank the current player has reached.
player_percentile_band: u8
§bonus: Option<u64>
Trait Implementations§
Source§impl Clone for CommunityGoalEventGoal
impl Clone for CommunityGoalEventGoal
Source§fn clone(&self) -> CommunityGoalEventGoal
fn clone(&self) -> CommunityGoalEventGoal
Returns a copy 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 CommunityGoalEventGoal
impl Debug for CommunityGoalEventGoal
Source§impl<'de> Deserialize<'de> for CommunityGoalEventGoal
impl<'de> Deserialize<'de> for CommunityGoalEventGoal
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 CommunityGoalEventGoal
impl PartialEq for CommunityGoalEventGoal
Source§impl Serialize for CommunityGoalEventGoal
impl Serialize for CommunityGoalEventGoal
impl StructuralPartialEq for CommunityGoalEventGoal
Auto Trait Implementations§
impl Freeze for CommunityGoalEventGoal
impl RefUnwindSafe for CommunityGoalEventGoal
impl Send for CommunityGoalEventGoal
impl Sync for CommunityGoalEventGoal
impl Unpin for CommunityGoalEventGoal
impl UnwindSafe for CommunityGoalEventGoal
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