pub struct NzbJob {Show 21 fields
pub id: String,
pub name: String,
pub category: String,
pub status: JobStatus,
pub priority: Priority,
pub total_bytes: u64,
pub downloaded_bytes: u64,
pub file_count: usize,
pub files_completed: usize,
pub article_count: usize,
pub articles_downloaded: usize,
pub articles_failed: usize,
pub added_at: DateTime<Utc>,
pub completed_at: Option<DateTime<Utc>>,
pub work_dir: PathBuf,
pub output_dir: PathBuf,
pub password: Option<String>,
pub error_message: Option<String>,
pub speed_bps: u64,
pub server_stats: Vec<ServerArticleStats>,
pub files: Vec<NzbFile>,
}Expand description
A complete download job (parsed from one NZB file).
Fields§
§id: StringUnique job identifier
name: StringHuman-readable name (from NZB filename or metadata)
category: StringCategory for this download
status: JobStatusCurrent status
priority: PriorityDownload priority
total_bytes: u64Total size in bytes (sum of all articles)
downloaded_bytes: u64Bytes downloaded so far
file_count: usizeNumber of files in this job
files_completed: usizeNumber of files completed
article_count: usizeNumber of articles total
articles_downloaded: usizeNumber of articles downloaded
articles_failed: usizeNumber of articles failed
added_at: DateTime<Utc>When the job was added
completed_at: Option<DateTime<Utc>>When the job completed (if applicable)
work_dir: PathBufWorking directory for this job (incomplete)
output_dir: PathBufFinal output directory
password: Option<String>Optional password for extraction
error_message: Option<String>Error message if failed
speed_bps: u64Current download speed for this job (bytes/sec)
server_stats: Vec<ServerArticleStats>Per-server download statistics
files: Vec<NzbFile>Files in this job
Trait Implementations§
Source§impl<'de> Deserialize<'de> for NzbJob
impl<'de> Deserialize<'de> for NzbJob
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 NzbJob
impl RefUnwindSafe for NzbJob
impl Send for NzbJob
impl Sync for NzbJob
impl Unpin for NzbJob
impl UnsafeUnpin for NzbJob
impl UnwindSafe for NzbJob
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more