pub struct DownloadLimits {
pub max_image_bytes: usize,
pub download_timeout: Duration,
}Expand description
Limits for image download operations.
Fields§
§max_image_bytes: usizeMaximum image size in bytes (default: 100 MB).
download_timeout: DurationPer-image download timeout (default: 60s).
Trait Implementations§
Source§impl Clone for DownloadLimits
impl Clone for DownloadLimits
Source§fn clone(&self) -> DownloadLimits
fn clone(&self) -> DownloadLimits
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 DownloadLimits
impl Debug for DownloadLimits
Auto Trait Implementations§
impl Freeze for DownloadLimits
impl RefUnwindSafe for DownloadLimits
impl Send for DownloadLimits
impl Sync for DownloadLimits
impl Unpin for DownloadLimits
impl UnsafeUnpin for DownloadLimits
impl UnwindSafe for DownloadLimits
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