pub struct CreateFilterParams {
pub phrase: String,
pub context: Vec<String>,
pub irreversible: bool,
pub whole_word: bool,
pub expires_in: Option<u32>,
}Expand description
Parameters for creating a new content filter.
Fields§
§phrase: StringThe keyword or phrase to filter.
context: Vec<String>The contexts in which to apply the filter (e.g., “home”, “notifications”, “public”, “thread”).
irreversible: boolWhether the filter should be applied server-side (irreversible) or just hint the client.
whole_word: boolWhether to match only whole words.
expires_in: Option<u32>Number of seconds from now until the filter expires.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for CreateFilterParams
impl RefUnwindSafe for CreateFilterParams
impl Send for CreateFilterParams
impl Sync for CreateFilterParams
impl Unpin for CreateFilterParams
impl UnwindSafe for CreateFilterParams
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