#[non_exhaustive]pub struct SweepConfig {
pub messages: Option<Sweep>,
pub threads: Option<Sweep>,
}Expand description
The periodic sweeps of a CacheConfig (D-167, D-169). Set them with
CacheConfigBuilder::sweep_messages and CacheConfigBuilder::sweep_threads.
discord.js counterpart: the sweepers client option.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.messages: Option<Sweep>Sweeps messages by age (their last edit, else their creation). Default: none.
threads: Option<Sweep>Sweeps threads archived for longer than the lifetime. Default: every hour, archived more than 4 hours ago, like discord.js.
Trait Implementations§
Source§impl Clone for SweepConfig
impl Clone for SweepConfig
Source§impl Debug for SweepConfig
impl Debug for SweepConfig
Source§impl Default for SweepConfig
impl Default for SweepConfig
impl Eq for SweepConfig
Source§impl Hash for SweepConfig
impl Hash for SweepConfig
Source§impl PartialEq for SweepConfig
impl PartialEq for SweepConfig
impl StructuralPartialEq for SweepConfig
Auto Trait Implementations§
impl Freeze for SweepConfig
impl RefUnwindSafe for SweepConfig
impl Send for SweepConfig
impl Sync for SweepConfig
impl Unpin for SweepConfig
impl UnsafeUnpin for SweepConfig
impl UnwindSafe for SweepConfig
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more