pub enum PromotionEvent {
Exobiologist(ExobiologyRank),
Combat(CombatRank),
Mercenary(MercenaryRank),
Trade(TradeRank),
Exploration(ExplorationRank),
Federation(FederationRank),
Empire(EmpireRank),
}
Expand description
Fired when the player is promoted for a given rank.
Variants§
Exobiologist(ExobiologyRank)
Combat(CombatRank)
Mercenary(MercenaryRank)
Trade(TradeRank)
Exploration(ExplorationRank)
Federation(FederationRank)
Empire(EmpireRank)
Trait Implementations§
Source§impl Clone for PromotionEvent
impl Clone for PromotionEvent
Source§fn clone(&self) -> PromotionEvent
fn clone(&self) -> PromotionEvent
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 PromotionEvent
impl Debug for PromotionEvent
Source§impl<'de> Deserialize<'de> for PromotionEvent
impl<'de> Deserialize<'de> for PromotionEvent
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 PromotionEvent
impl PartialEq for PromotionEvent
Source§impl Serialize for PromotionEvent
impl Serialize for PromotionEvent
impl StructuralPartialEq for PromotionEvent
Auto Trait Implementations§
impl Freeze for PromotionEvent
impl RefUnwindSafe for PromotionEvent
impl Send for PromotionEvent
impl Sync for PromotionEvent
impl Unpin for PromotionEvent
impl UnwindSafe for PromotionEvent
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