pub struct GriefingConfig {
pub enabled: bool,
pub cancelled_entities: Vec<EntityType>,
}Expand description
Configuration for the griefing mechanics module.
Fields§
§enabled: boolWhether this module is active.
cancelled_entities: Vec<EntityType>Entity types whose griefing actions (block changes and explosions) are blocked. Leave empty to disable entity filtering.
Trait Implementations§
Source§impl Clone for GriefingConfig
impl Clone for GriefingConfig
Source§fn clone(&self) -> GriefingConfig
fn clone(&self) -> GriefingConfig
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 GriefingConfig
impl Debug for GriefingConfig
Source§impl Default for GriefingConfig
impl Default for GriefingConfig
Source§impl<'de> Deserialize<'de> for GriefingConfig
impl<'de> Deserialize<'de> for GriefingConfig
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 GriefingConfig
impl RefUnwindSafe for GriefingConfig
impl Send for GriefingConfig
impl Sync for GriefingConfig
impl Unpin for GriefingConfig
impl UnsafeUnpin for GriefingConfig
impl UnwindSafe for GriefingConfig
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