pub struct ChatConfig {
pub enabled: bool,
pub chat_format: String,
pub chat_filter: Vec<String>,
}Expand description
Configuration for the chat module.
Fields§
§enabled: boolWhether this module is active.
chat_format: StringCustom chat format. Use {player} and {message} as placeholders. Leave empty to disable.
chat_filter: Vec<String>List of blocked words/phrases. Messages containing any entry (case-insensitive) are cancelled. Leave empty to disable.
Trait Implementations§
Source§impl Clone for ChatConfig
impl Clone for ChatConfig
Source§fn clone(&self) -> ChatConfig
fn clone(&self) -> ChatConfig
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 ChatConfig
impl Debug for ChatConfig
Source§impl Default for ChatConfig
impl Default for ChatConfig
Source§fn default() -> ChatConfig
fn default() -> ChatConfig
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ChatConfig
impl<'de> Deserialize<'de> for ChatConfig
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 ChatConfig
impl RefUnwindSafe for ChatConfig
impl Send for ChatConfig
impl Sync for ChatConfig
impl Unpin for ChatConfig
impl UnsafeUnpin for ChatConfig
impl UnwindSafe for ChatConfig
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