pub enum FilterResult {
Show 16 variants
WouldChange {
summary: String,
width_warning: Option<String>,
},
RefusedNotASpreadsheet {
mime_type: String,
},
RefusedShortcut,
RefusedNoVisibleParents,
RefusedSheetNotFound {
title: String,
available: Vec<String>,
},
RefusedInvalidRange {
detail: String,
},
RefusedFilterViewNotFound {
filter_view_id: i64,
},
Blocked {
operation: DriveOperation,
decided_by: Option<DecidingRule>,
},
RefusedNoLease,
RefusedLeaseExpired,
RefusedLeaseWrongFile,
RefusedLeaseStale,
Unchanged {
detail: String,
},
Changed {
summary: String,
filter_view_id: Option<i64>,
width_warning: Option<String>,
},
AppliedReplyUnreadable {
summary: String,
filter_view_id: Option<i64>,
width_warning: Option<String>,
detail: String,
},
Failed {
detail: String,
},
}Expand description
What happened (or, under --dry-run, would happen).
Variants§
WouldChange
--dry-run, and the gate would allow it.
Fields
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
The verb’s own arguments were invalid — a bad --sort-by/
--hide-values format, a malformed --sheet/--range pair, or
(for update-filter-view) nothing to change.
RefusedFilterViewNotFound
update-filter-view/delete-filter-view named a --filter-view-id
that does not exist in this workbook.
Blocked
The folder write-permission gate refused it.
Fields
operation: DriveOperationWhich of FilterVerb::gate_operations denied first — only
ever not sheets-structure for set-basic-filter --sort-by’s
union gate, where which of the two denied is the actionable
part of the message.
decided_by: Option<DecidingRule>The rule that decided the refusal, if any.
RefusedNoLease
No --lease was presented, and the deciding rule requires one
(ADR-0080 §9).
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 — the
staleness check (ADR-0080 §6).
Unchanged
The workbook is already in the requested state
(clear-basic-filter on a sheet with no basic filter), so no
request is sent. Reported identically by a dry run and a real run.
Changed
The mutation succeeded.
Fields
summary: StringSame summary as Self::WouldChange.
filter_view_id: Option<i64>The filter view’s stable id — server-assigned for
add-filter-view, otherwise the one resolved against. None
for set-basic-filter/clear-basic-filter.
width_warning: Option<String>Same as Self::WouldChange’s.
AppliedReplyUnreadable
The API answered 2xx — the mutation was applied — but its reply
could not be read (issue #2021). Distinct from Self::Failed: a
retry here could duplicate a filter view. The server-assigned id of an
added filter view was in that reply, so it is unknown.
Fields
summary: StringSame summary as Self::WouldChange.
filter_view_id: Option<i64>The filter view id resolved before the call — Some for
update-filter-view/delete-filter-view, None otherwise. Never
the server-assigned id of an added view (that was in the reply).
width_warning: Option<String>Same as Self::Changed’s.
Failed
An API or validation error.
Trait Implementations§
Source§impl Clone for FilterResult
impl Clone for FilterResult
Source§impl Debug for FilterResult
impl Debug for FilterResult
impl Eq for FilterResult
Source§impl PartialEq for FilterResult
impl PartialEq for FilterResult
Source§impl Serialize for FilterResult
impl Serialize for FilterResult
impl StructuralPartialEq for FilterResult
Auto Trait Implementations§
impl Freeze for FilterResult
impl RefUnwindSafe for FilterResult
impl Send for FilterResult
impl Sync for FilterResult
impl Unpin for FilterResult
impl UnsafeUnpin for FilterResult
impl UnwindSafe for FilterResult
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