pub enum Government {
Show 16 variants
Anarchy,
Communism,
Confederacy,
Cooperative,
Corporate,
Democracy,
Dictatorship,
Feudal,
Patronage,
PrisonColony,
Theocracy,
Engineer,
None,
Prison,
PrivateOwnership,
Unknown(String),
}
Expand description
The type of government.
Variants§
Anarchy
Communism
Confederacy
Cooperative
Corporate
Democracy
Dictatorship
Feudal
Patronage
PrisonColony
Theocracy
Engineer
None
Prison
PrivateOwnership
Private ownership indicates a fleet carrier that is owned by a player.
Unknown(String)
Available on crate feature
allow-unknown
only.Trait Implementations§
Source§impl Clone for Government
impl Clone for Government
Source§fn clone(&self) -> Government
fn clone(&self) -> Government
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 Government
impl Debug for Government
Source§impl<'de> Deserialize<'de> for Government
impl<'de> Deserialize<'de> for Government
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 Display for Government
impl Display for Government
Source§impl PartialEq for Government
impl PartialEq for Government
Source§impl Serialize for Government
impl Serialize for Government
impl StructuralPartialEq for Government
Auto Trait Implementations§
impl Freeze for Government
impl RefUnwindSafe for Government
impl Send for Government
impl Sync for Government
impl Unpin for Government
impl UnwindSafe for Government
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