pub struct OpenableConfig {
pub enabled: bool,
pub gamemodes: Vec<GameMode>,
pub actions: Vec<InteractAction>,
}Expand description
Configuration for the openable mechanics module.
Fields§
§enabled: boolWhether this module is active.
gamemodes: Vec<GameMode>List of gamemodes allowed to trigger the mechanic. Use variant names like “Survival”, “Creative”, etc. Leave empty to allow all.
actions: Vec<InteractAction>List of interaction actions that trigger the mechanic. Use variant names like “RightClickBlock”, “RightClickAir”, etc. Leave empty to allow all.
Trait Implementations§
Source§impl Clone for OpenableConfig
impl Clone for OpenableConfig
Source§fn clone(&self) -> OpenableConfig
fn clone(&self) -> OpenableConfig
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 OpenableConfig
impl Debug for OpenableConfig
Source§impl Default for OpenableConfig
impl Default for OpenableConfig
Source§impl<'de> Deserialize<'de> for OpenableConfig
impl<'de> Deserialize<'de> for OpenableConfig
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 OpenableConfig
impl RefUnwindSafe for OpenableConfig
impl Send for OpenableConfig
impl Sync for OpenableConfig
impl Unpin for OpenableConfig
impl UnsafeUnpin for OpenableConfig
impl UnwindSafe for OpenableConfig
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