pub struct GetReport {
pub outcome: GetOutcome,
pub dry_run: bool,
pub on_conflict: OnConflict,
pub source: SettingSource,
pub counts: GetCounts,
pub bytes: ByteTotals,
pub problem: Option<Error>,
pub files: Vec<GetRow>,
}Expand description
The whole result of a get: operation information plus one row per file.
Fields§
§outcome: GetOutcome§dry_run: bool§on_conflict: OnConflict§source: SettingSource§counts: GetCounts§bytes: ByteTotals§problem: Option<Error>An operation-level problem, such as nothing matching the request
files: Vec<GetRow>Implementations§
Source§impl GetReport
impl GetReport
Sourcepub fn problem(
code: ErrorCode,
message: impl Into<String>,
dry_run: bool,
on_conflict: OnConflict,
source: SettingSource,
) -> Self
pub fn problem( code: ErrorCode, message: impl Into<String>, dry_run: bool, on_conflict: OnConflict, source: SettingSource, ) -> Self
A report for a request that selected nothing or could not run at all.
Sourcepub fn summary(&self) -> String
pub fn summary(&self) -> String
The summary people read: the outcome in words with the non-zero
counts, as the CLI prints it under the file lines and R prints it above
a result. When the policy acted, that is when a file with local changes
or no record was skipped, held back or replaced, a second line names
it: on_conflict = <policy> (<source>). A report with a problem
says nothing more than the problem, which callers print instead.
Sourcepub fn verdict(&self) -> GetVerdict
pub fn verdict(&self) -> GetVerdict
Whether get did as asked. A skip the policy asked for counts as done.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for GetReport
impl RefUnwindSafe for GetReport
impl Send for GetReport
impl Sync for GetReport
impl Unpin for GetReport
impl UnsafeUnpin for GetReport
impl UnwindSafe for GetReport
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> 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