pub struct DownloadConfig {
pub max_file_size: Option<u64>,
pub max_concurrent: usize,
pub timeout_secs: u64,
pub encode_base64: bool,
pub max_retries: u32,
pub retry_delay_ms: u64,
pub user_agent: String,
}Expand description
Download configuration
Fields§
§max_file_size: Option<u64>Maximum file size in bytes
max_concurrent: usizeMaximum concurrent downloads
timeout_secs: u64Timeout in seconds
encode_base64: boolEncode to base64
max_retries: u32Maximum retries
retry_delay_ms: u64Retry delay in milliseconds
user_agent: StringUser agent for downloads
Trait Implementations§
Source§impl Clone for DownloadConfig
impl Clone for DownloadConfig
Source§fn clone(&self) -> DownloadConfig
fn clone(&self) -> DownloadConfig
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 DownloadConfig
impl Debug for DownloadConfig
Source§impl Default for DownloadConfig
impl Default for DownloadConfig
Source§impl<'de> Deserialize<'de> for DownloadConfig
impl<'de> Deserialize<'de> for DownloadConfig
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 DownloadConfig
impl RefUnwindSafe for DownloadConfig
impl Send for DownloadConfig
impl Sync for DownloadConfig
impl Unpin for DownloadConfig
impl UnwindSafe for DownloadConfig
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