pub enum FindReplaceResult {
Show 14 variants
WouldChange {
target: FindReplaceTarget,
summary: String,
},
Changed {
target: FindReplaceTarget,
counts: Option<FindReplaceCounts>,
},
RefusedInvalidRequest {
detail: String,
},
RefusedNotASpreadsheet {
mime_type: String,
},
RefusedShortcut,
RefusedNoVisibleParents,
RefusedSheetNotFound {
title: String,
available: Vec<String>,
},
Blocked {
decided_by: Option<DecidingRule>,
},
RefusedNoLease,
RefusedLeaseExpired,
RefusedLeaseWrongFile,
RefusedLeaseStale,
AppliedReplyUnreadable {
target: FindReplaceTarget,
summary: String,
detail: String,
},
Failed {
detail: String,
},
}Expand description
Result of a find/replace attempt.
Variants§
WouldChange
Changed
RefusedInvalidRequest
RefusedNotASpreadsheet
RefusedShortcut
RefusedNoVisibleParents
RefusedSheetNotFound
Blocked
Fields
§
decided_by: Option<DecidingRule>RefusedNoLease
RefusedLeaseExpired
RefusedLeaseWrongFile
RefusedLeaseStale
AppliedReplyUnreadable
The API answered 2xx — the replacement was applied — but its reply
could not be read (issue #2021). Distinct from Self::Failed: a
retry here could compound (a -> aa). The replacement counts were
in that reply, so they are unknown.
Fields
§
target: FindReplaceTargetFailed
Trait Implementations§
Source§impl Clone for FindReplaceResult
impl Clone for FindReplaceResult
Source§impl Debug for FindReplaceResult
impl Debug for FindReplaceResult
impl Eq for FindReplaceResult
Source§impl PartialEq for FindReplaceResult
impl PartialEq for FindReplaceResult
Source§impl Serialize for FindReplaceResult
impl Serialize for FindReplaceResult
impl StructuralPartialEq for FindReplaceResult
Auto Trait Implementations§
impl Freeze for FindReplaceResult
impl RefUnwindSafe for FindReplaceResult
impl Send for FindReplaceResult
impl Sync for FindReplaceResult
impl Unpin for FindReplaceResult
impl UnsafeUnpin for FindReplaceResult
impl UnwindSafe for FindReplaceResult
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<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
Compare self to
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> ⓘ
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