pub enum PlanetarySignalType {
Human,
Biological,
Geological,
Thargoid,
Guardian,
PlanetAnomaly,
Other,
Commodity(Commodity),
Unknown(String),
}
Expand description
A type of planetary signal that can be present on a planet.
Variants§
Human
Human signals indicate settlements and outposts.
Biological
Biological signals indicate that there are plants on the surface of the planet.
Geological
Geological signals can include things like geysers and crystal shards.
Thargoid
Unknown signals related to Thargoid activity on the planet.
Guardian
Unknown signals related to Guardian activity on the planet.
PlanetAnomaly
Unknown anomalous signal.
Other
Other unspecified signal.
Commodity(Commodity)
Signal related to a specific commodity.
Unknown(String)
Available on crate feature
allow-unknown
only.An unknown signal that could not be parsed.
Implementations§
Source§impl PlanetarySignalType
impl PlanetarySignalType
Sourcepub fn is_unknown(&self) -> bool
Available on crate feature allow-unknown
only.
pub fn is_unknown(&self) -> bool
allow-unknown
only.Whether the current variant is unknown.
Trait Implementations§
Source§impl Clone for PlanetarySignalType
impl Clone for PlanetarySignalType
Source§fn clone(&self) -> PlanetarySignalType
fn clone(&self) -> PlanetarySignalType
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 PlanetarySignalType
impl Debug for PlanetarySignalType
Source§impl<'de> Deserialize<'de> for PlanetarySignalType
impl<'de> Deserialize<'de> for PlanetarySignalType
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 PlanetarySignalType
impl Display for PlanetarySignalType
Source§impl PartialEq for PlanetarySignalType
impl PartialEq for PlanetarySignalType
Source§impl Serialize for PlanetarySignalType
impl Serialize for PlanetarySignalType
impl StructuralPartialEq for PlanetarySignalType
Auto Trait Implementations§
impl Freeze for PlanetarySignalType
impl RefUnwindSafe for PlanetarySignalType
impl Send for PlanetarySignalType
impl Sync for PlanetarySignalType
impl Unpin for PlanetarySignalType
impl UnwindSafe for PlanetarySignalType
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