pub struct BatchResult {
pub id: String,
pub success: bool,
pub path: Option<PathBuf>,
pub error: Option<String>,
pub duration_ms: u64,
}Expand description
Result of a batch download job.
Fields§
§id: StringJob ID
success: boolWhether the download succeeded
path: Option<PathBuf>Path to the downloaded file (if successful)
error: Option<String>Error message (if failed)
duration_ms: u64Time taken to download
Trait Implementations§
Source§impl Clone for BatchResult
impl Clone for BatchResult
Source§fn clone(&self) -> BatchResult
fn clone(&self) -> BatchResult
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 moreAuto Trait Implementations§
impl Freeze for BatchResult
impl RefUnwindSafe for BatchResult
impl Send for BatchResult
impl Sync for BatchResult
impl Unpin for BatchResult
impl UnsafeUnpin for BatchResult
impl UnwindSafe for BatchResult
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