pub enum DeveloperMetadataResult {
Show 19 variants
WouldCreate {
key: String,
value: String,
location: String,
},
WouldUpdate {
new_value: String,
previous: Vec<DeveloperMetadataEntry>,
},
WouldDelete {
entries: Vec<DeveloperMetadataEntry>,
},
RefusedNotASpreadsheet {
mime_type: String,
},
RefusedShortcut,
RefusedNoVisibleParents,
RefusedSheetNotFound {
title: String,
available: Vec<String>,
},
RefusedInvalidLocation {
detail: String,
},
RefusedNotFound {
key: String,
},
Blocked {
decided_by: Option<DecidingRule>,
},
RefusedNoLease,
RefusedLeaseExpired,
RefusedLeaseWrongFile,
RefusedLeaseStale,
Created {
key: String,
value: String,
location: String,
},
Updated {
new_value: String,
previous: Vec<DeveloperMetadataEntry>,
},
Deleted {
entries: Vec<DeveloperMetadataEntry>,
},
AppliedReplyUnreadable {
summary: String,
applied: Box<Self>,
detail: String,
},
Failed {
detail: String,
},
}Expand description
What happened (or, under --dry-run, would happen).
Variants§
WouldCreate
--dry-run: no existing entry matched; a new one would be created.
Fields
WouldUpdate
--dry-run: one or more existing entries matched; their value
would change. previous is every matched entry as it stands now.
Fields
previous: Vec<DeveloperMetadataEntry>Every entry that matched, before the change.
WouldDelete
--dry-run for delete-developer-metadata: every entry that would
be removed.
Fields
entries: Vec<DeveloperMetadataEntry>The entries that would be removed.
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.
RefusedInvalidLocation
The --sheet/--dimension/--start/--end combination was
invalid — a partial combination, or an out-of-order span.
RefusedNotFound
delete-developer-metadata found no entry matching key and the
given location — nothing to preview or remove.
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
(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.
Created
A new entry was created.
Fields
Updated
Every matched entry’s value was changed.
Fields
previous: Vec<DeveloperMetadataEntry>Every entry that matched, before the change.
Deleted
Every matched entry was removed.
Fields
entries: Vec<DeveloperMetadataEntry>The entries that were removed.
AppliedReplyUnreadable
The API answered 2xx — the mutation was applied — but its reply
could not be read (issue #2021). Distinct from Self::Failed: the
change is already in the spreadsheet, so check it before retrying.
Fields
summary: StringWhat was applied, in the same wording the request log’s
fields_changed carries for Self::Created / Self::Updated
/ Self::Deleted.
applied: Box<Self>The Self::Created / Self::Updated / Self::Deleted result
that would have been reported had the reply been readable. All of
it is plan-time data (the entries were read before the call), so
nothing an applied change carries is lost.
Failed
An API or validation error.
Trait Implementations§
Source§impl Clone for DeveloperMetadataResult
impl Clone for DeveloperMetadataResult
Source§impl Debug for DeveloperMetadataResult
impl Debug for DeveloperMetadataResult
impl Eq for DeveloperMetadataResult
Source§impl PartialEq for DeveloperMetadataResult
impl PartialEq for DeveloperMetadataResult
Source§impl Serialize for DeveloperMetadataResult
impl Serialize for DeveloperMetadataResult
impl StructuralPartialEq for DeveloperMetadataResult
Auto Trait Implementations§
impl Freeze for DeveloperMetadataResult
impl RefUnwindSafe for DeveloperMetadataResult
impl Send for DeveloperMetadataResult
impl Sync for DeveloperMetadataResult
impl Unpin for DeveloperMetadataResult
impl UnsafeUnpin for DeveloperMetadataResult
impl UnwindSafe for DeveloperMetadataResult
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