pub struct ContentLimits {
pub max_content_size: usize,
pub max_download_time: u64,
pub allowed_content_types: HashSet<String>,
}Expand description
Content size and time limits configuration
Fields§
§max_content_size: usizeMaximum content size in bytes (default: 10MB)
max_download_time: u64Maximum download time in seconds (default: 30s)
allowed_content_types: HashSet<String>Allowed content types (if not empty, only these are allowed)
Trait Implementations§
Source§impl Clone for ContentLimits
impl Clone for ContentLimits
Source§fn clone(&self) -> ContentLimits
fn clone(&self) -> ContentLimits
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 ContentLimits
impl Debug for ContentLimits
Auto Trait Implementations§
impl Freeze for ContentLimits
impl RefUnwindSafe for ContentLimits
impl Send for ContentLimits
impl Sync for ContentLimits
impl Unpin for ContentLimits
impl UnwindSafe for ContentLimits
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