pub struct HeadConfig {
pub enabled: bool,
pub skull_drop_chance: f64,
}Expand description
Configuration for the player head drop module.
Fields§
§enabled: boolWhether this module is active.
skull_drop_chance: f64Chance (0.0 - 1.0) for a player’s head to drop on death.
Trait Implementations§
Source§impl Clone for HeadConfig
impl Clone for HeadConfig
Source§fn clone(&self) -> HeadConfig
fn clone(&self) -> HeadConfig
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 HeadConfig
impl Debug for HeadConfig
Source§impl Default for HeadConfig
impl Default for HeadConfig
Source§impl<'de> Deserialize<'de> for HeadConfig
impl<'de> Deserialize<'de> for HeadConfig
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 HeadConfig
impl RefUnwindSafe for HeadConfig
impl Send for HeadConfig
impl Sync for HeadConfig
impl Unpin for HeadConfig
impl UnsafeUnpin for HeadConfig
impl UnwindSafe for HeadConfig
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