pub struct NzbFile {
pub id: String,
pub filename: String,
pub bytes: u64,
pub bytes_downloaded: u64,
pub is_par2: bool,
pub par2_setname: Option<String>,
pub par2_vol: Option<u32>,
pub par2_blocks: Option<u32>,
pub assembled: bool,
pub groups: Vec<String>,
pub articles: Vec<Article>,
}Expand description
A single file within an NZB job (collection of NNTP articles).
Fields§
§id: StringUnique file identifier
filename: StringFilename (from yEnc header or NZB subject)
bytes: u64Total size in bytes
bytes_downloaded: u64Bytes downloaded
is_par2: boolIs this a par2 file?
par2_setname: Option<String>Par2 set name (if par2)
par2_vol: Option<u32>Par2 volume number (if par2)
par2_blocks: Option<u32>Par2 block count (if par2)
assembled: boolFile assembly complete
groups: Vec<String>Newsgroup(s) this file was posted to
articles: Vec<Article>Article segments
Trait Implementations§
Source§impl<'de> Deserialize<'de> for NzbFile
impl<'de> Deserialize<'de> for NzbFile
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 NzbFile
impl RefUnwindSafe for NzbFile
impl Send for NzbFile
impl Sync for NzbFile
impl Unpin for NzbFile
impl UnsafeUnpin for NzbFile
impl UnwindSafe for NzbFile
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