pub struct CommandCacheConfig {
pub enabled: bool,
pub ttl_ms: u64,
pub max_entries: usize,
pub allowlist: Vec<String>,
}Expand description
Read-only command cache configuration
Fields§
§enabled: boolEnable command caching
ttl_ms: u64Cache TTL in milliseconds
max_entries: usizeMaximum number of cached entries
allowlist: Vec<String>Allowlist of command prefixes eligible for caching
Trait Implementations§
Source§impl Clone for CommandCacheConfig
impl Clone for CommandCacheConfig
Source§impl Debug for CommandCacheConfig
impl Debug for CommandCacheConfig
Source§impl Default for CommandCacheConfig
impl Default for CommandCacheConfig
Source§impl<'de> Deserialize<'de> for CommandCacheConfigwhere
CommandCacheConfig: Default,
impl<'de> Deserialize<'de> for CommandCacheConfigwhere
CommandCacheConfig: Default,
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
Source§impl JsonSchema for CommandCacheConfig
impl JsonSchema for CommandCacheConfig
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreAuto Trait Implementations§
impl Freeze for CommandCacheConfig
impl RefUnwindSafe for CommandCacheConfig
impl Send for CommandCacheConfig
impl Sync for CommandCacheConfig
impl Unpin for CommandCacheConfig
impl UnsafeUnpin for CommandCacheConfig
impl UnwindSafe for CommandCacheConfig
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