pub struct FileCacheConfig {
pub directory: String,
pub ttl_hours: u32,
pub max_cache_size_mb: u32,
pub cleanup_interval_minutes: u32,
pub max_file_size_mb: u32,
pub allowed_mime_types: Vec<String>,
pub blocked_mime_types: Vec<String>,
}Fields§
§directory: String§ttl_hours: u32§max_cache_size_mb: u32§cleanup_interval_minutes: u32§max_file_size_mb: u32§allowed_mime_types: Vec<String>§blocked_mime_types: Vec<String>Trait Implementations§
Source§impl Clone for FileCacheConfig
impl Clone for FileCacheConfig
Source§fn clone(&self) -> FileCacheConfig
fn clone(&self) -> FileCacheConfig
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 FileCacheConfig
impl Debug for FileCacheConfig
Source§impl<'de> Deserialize<'de> for FileCacheConfig
impl<'de> Deserialize<'de> for FileCacheConfig
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
Auto Trait Implementations§
impl Freeze for FileCacheConfig
impl RefUnwindSafe for FileCacheConfig
impl Send for FileCacheConfig
impl Sync for FileCacheConfig
impl Unpin for FileCacheConfig
impl UnsafeUnpin for FileCacheConfig
impl UnwindSafe for FileCacheConfig
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