pub enum PivotResult {
Show 18 variants
WouldChange(PivotChange),
RefusedNotASpreadsheet {
mime_type: String,
},
RefusedShortcut,
RefusedNoVisibleParents,
RefusedSheetNotFound {
title: String,
available: Vec<String>,
},
RefusedInvalidRange {
detail: String,
},
RefusedInvalidAnchor {
detail: String,
},
RefusedInvalidSource {
detail: String,
},
RefusedAnchorHasPivotTable {
anchor: String,
existing_summary: String,
},
RefusedNoPivotTableAtAnchor {
anchor: String,
},
Blocked {
operation: DriveOperation,
decided_by: Option<DecidingRule>,
},
RefusedNoLease,
RefusedLeaseExpired,
RefusedLeaseWrongFile,
RefusedLeaseStale,
Changed(PivotChange),
AppliedReplyUnreadable {
summary: String,
detail: String,
change: PivotChange,
},
Failed {
detail: String,
},
}Expand description
What happened (or, under --dry-run, would happen).
Variants§
WouldChange(PivotChange)
--dry-run, and the gate would allow it.
RefusedNotASpreadsheet
The target is not a Google Sheet.
RefusedShortcut
The target is a shortcut, which we do not follow.
RefusedNoVisibleParents
The target has no parents this account can see.
RefusedSheetNotFound
The named sheet does not exist in this workbook.
RefusedInvalidRange
--sheet/--anchor/--source failed to compose into a range, or
named a sheet no range grammar could resolve.
RefusedInvalidAnchor
--anchor resolved to more than one cell.
RefusedInvalidSource
--source was unbounded, or a --row/--column/--value/
--filter column offset fell outside it, or no --value was
given.
RefusedAnchorHasPivotTable
add-pivot-table’s anchor already holds a pivot table.
Fields
RefusedNoPivotTableAtAnchor
delete-pivot-table’s anchor holds no pivot table.
Blocked
The folder write-permission gate refused it.
Fields
operation: DriveOperationWhich of PivotVerb::gate_operations denied first.
decided_by: Option<DecidingRule>The rule that decided the refusal, if any.
RefusedNoLease
No --lease was presented, and the deciding rule requires one.
RefusedLeaseExpired
The presented lease has expired, or was never a token this ledger knows about.
RefusedLeaseWrongFile
The presented lease is bound to a different file id.
RefusedLeaseStale
The file has moved since the lease’s recorded version.
Changed(PivotChange)
The mutation succeeded.
AppliedReplyUnreadable
The API answered 2xx — the mutation was applied — but its reply
could not be read (issue #2021). Distinct from Self::Failed: a
retry of add-pivot-table would be refused or stack a second change
on the first.
Fields
change: PivotChangeThe plan-time substance, exactly as Self::Changed carries it
(anchor, source, config, what the anchor held) — none of it came
from the reply.
Failed
An API or validation error.
Trait Implementations§
Source§impl Clone for PivotResult
impl Clone for PivotResult
Source§impl Debug for PivotResult
impl Debug for PivotResult
impl Eq for PivotResult
Source§impl PartialEq for PivotResult
impl PartialEq for PivotResult
Source§impl Serialize for PivotResult
impl Serialize for PivotResult
impl StructuralPartialEq for PivotResult
Auto Trait Implementations§
impl Freeze for PivotResult
impl RefUnwindSafe for PivotResult
impl Send for PivotResult
impl Sync for PivotResult
impl Unpin for PivotResult
impl UnsafeUnpin for PivotResult
impl UnwindSafe for PivotResult
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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> ⓘ
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> ⓘ
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