#[non_exhaustive]pub struct Planet {
pub index: u8,
pub biome: Option<Biome>,
pub biome_subtype: Option<BiomeSubType>,
pub infested: bool,
pub name: Option<String>,
pub seed_hash: Option<u64>,
}Expand description
A planet within a star system.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.index: u8Planet index within the system (0-15).
biome: Option<Biome>§biome_subtype: Option<BiomeSubType>§infested: boolWhether the planet has infested (biological horror) variant.
name: Option<String>§seed_hash: Option<u64>Procedural generation seed.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Planet
impl<'de> Deserialize<'de> for Planet
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
impl Eq for Planet
impl StructuralPartialEq for Planet
Auto Trait Implementations§
impl Freeze for Planet
impl RefUnwindSafe for Planet
impl Send for Planet
impl Sync for Planet
impl Unpin for Planet
impl UnsafeUnpin for Planet
impl UnwindSafe for Planet
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