pub struct Config {
pub cache_users: bool,
pub cache_servers: bool,
pub cache_channels: bool,
pub cache_messages: bool,
pub cache_emojis: bool,
pub cache_members: bool,
}
Expand description
Configuration for an InMemoryCache
.
Fields§
§cache_users: bool
Whether to cache users
cache_servers: bool
Whether to cache servers
cache_channels: bool
Whether to cache channels
cache_messages: bool
Whether to cache messages
cache_emojis: bool
Whether to cache emojis
cache_members: bool
Whether to cache members
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Config
impl RefUnwindSafe for Config
impl Send for Config
impl Sync for Config
impl Unpin for Config
impl UnwindSafe for Config
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