pub struct StatementCacheConfig {
pub enabled: bool,
pub max_size: usize,
}Expand description
Configuration for statement caching.
Fields§
§enabled: boolWhether statement caching is enabled.
max_size: usizeMaximum number of statements to cache.
Implementations§
Source§impl StatementCacheConfig
impl StatementCacheConfig
Sourcepub fn with_max_size(max_size: usize) -> Self
pub fn with_max_size(max_size: usize) -> Self
Create a new configuration with a custom max size.
Trait Implementations§
Source§impl Clone for StatementCacheConfig
impl Clone for StatementCacheConfig
Source§fn clone(&self) -> StatementCacheConfig
fn clone(&self) -> StatementCacheConfig
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 StatementCacheConfig
impl Debug for StatementCacheConfig
Auto Trait Implementations§
impl Freeze for StatementCacheConfig
impl RefUnwindSafe for StatementCacheConfig
impl Send for StatementCacheConfig
impl Sync for StatementCacheConfig
impl Unpin for StatementCacheConfig
impl UnwindSafe for StatementCacheConfig
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