pub struct BatchHarvestSummary {
pub results: Vec<PortalHarvestResult>,
}Expand description
Aggregated results from batch harvesting multiple portals.
Fields§
§results: Vec<PortalHarvestResult>Results for each portal.
Implementations§
Source§impl BatchHarvestSummary
impl BatchHarvestSummary
Sourcepub fn add(&mut self, result: PortalHarvestResult)
pub fn add(&mut self, result: PortalHarvestResult)
Adds a portal harvest result.
Sourcepub fn successful_count(&self) -> usize
pub fn successful_count(&self) -> usize
Returns the count of successful harvests.
Sourcepub fn failed_count(&self) -> usize
pub fn failed_count(&self) -> usize
Returns the count of failed harvests.
Sourcepub fn total_datasets(&self) -> usize
pub fn total_datasets(&self) -> usize
Returns the total number of datasets across all successful portals.
Sourcepub fn total_portals(&self) -> usize
pub fn total_portals(&self) -> usize
Returns the total number of portals processed.
Trait Implementations§
Source§impl Clone for BatchHarvestSummary
impl Clone for BatchHarvestSummary
Source§fn clone(&self) -> BatchHarvestSummary
fn clone(&self) -> BatchHarvestSummary
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 BatchHarvestSummary
impl Debug for BatchHarvestSummary
Source§impl Default for BatchHarvestSummary
impl Default for BatchHarvestSummary
Source§fn default() -> BatchHarvestSummary
fn default() -> BatchHarvestSummary
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for BatchHarvestSummary
impl RefUnwindSafe for BatchHarvestSummary
impl Send for BatchHarvestSummary
impl Sync for BatchHarvestSummary
impl Unpin for BatchHarvestSummary
impl UnwindSafe for BatchHarvestSummary
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