pub struct ArchiveSummary {
pub selected: usize,
pub selected_ids: Vec<String>,
pub archived: usize,
pub skipped: usize,
pub failed_count: usize,
pub bytes_written: u64,
pub files_written: usize,
pub papers: Vec<ArchivedPaper>,
pub skipped_papers: Vec<ArchivedPaper>,
pub failed: Vec<ArchiveFailure>,
}Expand description
Aggregate archive outcome.
Fields§
§selected: usizeNumber selected by the caller.
selected_ids: Vec<String>Selected canonical identities.
archived: usizeNumber newly archived or repaired.
skipped: usizeNumber of verified existing archives skipped.
failed_count: usizeNumber that failed.
bytes_written: u64Downloaded document bytes.
files_written: usizeNewly retained document files.
papers: Vec<ArchivedPaper>Successful records.
skipped_papers: Vec<ArchivedPaper>Verified existing records, including their retained bytes and path.
failed: Vec<ArchiveFailure>Per-paper failures.
Implementations§
Source§impl ArchiveSummary
impl ArchiveSummary
Sourcepub fn is_success(&self) -> bool
pub fn is_success(&self) -> bool
Whether every selected paper archived or verified successfully.
Trait Implementations§
Source§impl Clone for ArchiveSummary
impl Clone for ArchiveSummary
Source§fn clone(&self) -> ArchiveSummary
fn clone(&self) -> ArchiveSummary
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 ArchiveSummary
impl Debug for ArchiveSummary
Source§impl Default for ArchiveSummary
impl Default for ArchiveSummary
Source§fn default() -> ArchiveSummary
fn default() -> ArchiveSummary
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ArchiveSummary
impl<'de> Deserialize<'de> for ArchiveSummary
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
impl Eq for ArchiveSummary
Source§impl PartialEq for ArchiveSummary
impl PartialEq for ArchiveSummary
Source§impl Serialize for ArchiveSummary
impl Serialize for ArchiveSummary
impl StructuralPartialEq for ArchiveSummary
Auto Trait Implementations§
impl Freeze for ArchiveSummary
impl RefUnwindSafe for ArchiveSummary
impl Send for ArchiveSummary
impl Sync for ArchiveSummary
impl Unpin for ArchiveSummary
impl UnsafeUnpin for ArchiveSummary
impl UnwindSafe for ArchiveSummary
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