pub enum ConditionalFormatResult {
Show 15 variants
WouldChange {
summary: String,
},
RefusedNotASpreadsheet {
mime_type: String,
},
RefusedShortcut,
RefusedNoVisibleParents,
RefusedSheetNotFound {
title: String,
available: Vec<String>,
},
RefusedInvalidRange {
detail: String,
},
RefusedIndexOutOfBounds {
sheet: String,
index: i64,
count: usize,
},
Blocked {
decided_by: Option<DecidingRule>,
},
RefusedNoLease,
RefusedLeaseExpired,
RefusedLeaseWrongFile,
RefusedLeaseStale,
Changed {
summary: String,
},
AppliedReplyUnreadable {
summary: 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.
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 --sheet/--range pair, or the rule’s own arguments, was
invalid.
RefusedIndexOutOfBounds
--index does not name a valid position on this sheet:
update-conditional-format/delete-conditional-format’s --index
doesn’t name an existing rule (valid range 0..count), or
add-conditional-format’s explicit --index is negative or greater
than the sheet’s current rule count (valid range 0..=count).
Fields
Blocked
The folder write-permission gate refused it.
Fields
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
The mutation succeeded.
Fields
summary: StringSame summary as Self::WouldChange.
AppliedReplyUnreadable
The API answered 2xx — the mutation was applied — but its reply
could not be read (issue #2021). Distinct from Self::Failed: the
rule change happened, and a retry could duplicate a rule or act on a
shifted index.
Fields
summary: StringSame summary as Self::Changed.
Failed
An API or validation error.
Trait Implementations§
Source§impl Clone for ConditionalFormatResult
impl Clone for ConditionalFormatResult
Source§impl Debug for ConditionalFormatResult
impl Debug for ConditionalFormatResult
impl Eq for ConditionalFormatResult
Source§impl PartialEq for ConditionalFormatResult
impl PartialEq for ConditionalFormatResult
Source§impl Serialize for ConditionalFormatResult
impl Serialize for ConditionalFormatResult
impl StructuralPartialEq for ConditionalFormatResult
Auto Trait Implementations§
impl Freeze for ConditionalFormatResult
impl RefUnwindSafe for ConditionalFormatResult
impl Send for ConditionalFormatResult
impl Sync for ConditionalFormatResult
impl Unpin for ConditionalFormatResult
impl UnsafeUnpin for ConditionalFormatResult
impl UnwindSafe for ConditionalFormatResult
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