pub enum WriteResult {
Show 14 variants
WouldReplace {
occurrences: usize,
},
Replaced {
occurrences_changed: i64,
},
AppliedResponseUnreadable {
detail: String,
},
RefusedNotAPresentation {
mime_type: String,
},
RefusedShortcut,
RefusedNoVisibleParents,
RefusedNoRevisionId,
Blocked {
decided_by: Option<DecidingRule>,
},
RefusedNoLease,
RefusedLeaseExpired,
RefusedLeaseWrongFile,
RefusedLeaseStale,
StaleRevision {
required_revision_id: String,
detail: String,
},
Failed {
detail: String,
},
}Expand description
Result of a replacement or preview.
Variants§
WouldReplace
Snapshot estimate, display-only.
Replaced
Successful mutation with authoritative server count.
AppliedResponseUnreadable
HTTP success means applied, even if its response cannot be decoded.
RefusedNotAPresentation
Metadata is not a presentation.
RefusedShortcut
Shortcuts are never followed.
RefusedNoVisibleParents
No visible parent and no file-specific grant.
RefusedNoRevisionId
No nonempty editor revision token to assert.
Blocked
Permission gate refusal, before any Slides read.
Fields
§
decided_by: Option<DecidingRule>Rule that refused, if any.
RefusedNoLease
Required Drive lease absent.
RefusedLeaseExpired
Lease expired or unknown.
RefusedLeaseWrongFile
Lease belongs to another file.
RefusedLeaseStale
Drive version changed since lease acquisition.
StaleRevision
Revision changed after the snapshot read; mutation refused atomically.
Failed
Other validation or API failure.
Trait Implementations§
Source§impl Clone for WriteResult
impl Clone for WriteResult
Source§impl Debug for WriteResult
impl Debug for WriteResult
impl Eq for WriteResult
Source§impl PartialEq for WriteResult
impl PartialEq for WriteResult
Source§impl Serialize for WriteResult
impl Serialize for WriteResult
impl StructuralPartialEq for WriteResult
Auto Trait Implementations§
impl Freeze for WriteResult
impl RefUnwindSafe for WriteResult
impl Send for WriteResult
impl Sync for WriteResult
impl Unpin for WriteResult
impl UnsafeUnpin for WriteResult
impl UnwindSafe for WriteResult
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