pub struct Profanity {
pub mode: ProfanityMode,
pub words: Option<Vec<String>>,
pub extra_words: Vec<String>,
}Expand description
Optional profanity safety configuration (spec 18). It never changes decode behavior for issued codes and never changes identifier capacity accounting: blocked codes are simply never issued by the encoder.
Fields§
§mode: ProfanityMode§words: Option<Vec<String>>Replaces the default list when present (mode Blocklist only).
extra_words: Vec<String>Appended to the effective list in either case.
Trait Implementations§
impl Eq for Profanity
impl StructuralPartialEq for Profanity
Auto Trait Implementations§
impl Freeze for Profanity
impl RefUnwindSafe for Profanity
impl Send for Profanity
impl Sync for Profanity
impl Unpin for Profanity
impl UnsafeUnpin for Profanity
impl UnwindSafe for Profanity
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