pub struct PerformanceConfig {
    pub enable_compression: bool,
    pub compression_level: u8,
    pub enable_caching: bool,
    pub cache_ttl_secs: u64,
    pub max_cache_size_mb: usize,
    pub enable_connection_pooling: bool,
    pub connection_pool_size: usize,
    pub connection_pool_timeout_secs: u64,
    pub enable_keep_alive: bool,
    pub keep_alive_timeout_secs: u64,
}Expand description
Performance configuration
Fields§
§enable_compression: boolEnable response compression
compression_level: u8Compression level (1-9)
enable_caching: boolEnable response caching
cache_ttl_secs: u64Cache TTL in seconds
max_cache_size_mb: usizeMaximum cache size in MB
enable_connection_pooling: boolEnable connection pooling
connection_pool_size: usizeConnection pool size
connection_pool_timeout_secs: u64Connection pool timeout in seconds
enable_keep_alive: boolEnable keep-alive
keep_alive_timeout_secs: u64Keep-alive timeout in seconds
Trait Implementations§
Source§impl Clone for PerformanceConfig
 
impl Clone for PerformanceConfig
Source§fn clone(&self) -> PerformanceConfig
 
fn clone(&self) -> PerformanceConfig
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
 
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from 
source. Read moreSource§impl Debug for PerformanceConfig
 
impl Debug for PerformanceConfig
Auto Trait Implementations§
impl Freeze for PerformanceConfig
impl RefUnwindSafe for PerformanceConfig
impl Send for PerformanceConfig
impl Sync for PerformanceConfig
impl Unpin for PerformanceConfig
impl UnwindSafe for PerformanceConfig
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