pub struct SpawningSettings {
pub monsters: bool,
pub animals: bool,
pub npcs: bool,
pub spawn_protection: u32,
}Fields§
§monsters: bool§animals: bool§npcs: bool§spawn_protection: u32Trait Implementations§
Source§impl Clone for SpawningSettings
impl Clone for SpawningSettings
Source§fn clone(&self) -> SpawningSettings
fn clone(&self) -> SpawningSettings
Returns a duplicate 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 SpawningSettings
impl Debug for SpawningSettings
Source§impl<'de> Deserialize<'de> for SpawningSettings
impl<'de> Deserialize<'de> for SpawningSettings
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
Auto Trait Implementations§
impl Freeze for SpawningSettings
impl RefUnwindSafe for SpawningSettings
impl Send for SpawningSettings
impl Sync for SpawningSettings
impl Unpin for SpawningSettings
impl UnsafeUnpin for SpawningSettings
impl UnwindSafe for SpawningSettings
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