pub enum EditResult {
WouldEdit,
RefusedNativeDocument,
Blocked {
decided_by: Option<DecidingRule>,
},
Edited,
Failed {
detail: String,
},
}Expand description
What happened (or, under --dry-run, would happen).
Variants§
WouldEdit
--dry-run, and the gate would allow it.
RefusedNativeDocument
The target is a Google-native document (Docs/Sheets/Slides/…) with no fixed byte content a raw media PATCH can replace. Checked client-side, before the gate — this isn’t a policy decision, the operation is simply nonsensical for this target.
Blocked
The folder write-permission gate refused it.
Fields
§
decided_by: Option<DecidingRule>The rule that decided the refusal, if any.
Edited
files.update (media) succeeded.
Failed
An API/validation error.
Trait Implementations§
Source§impl Clone for EditResult
impl Clone for EditResult
Source§fn clone(&self) -> EditResult
fn clone(&self) -> EditResult
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for EditResult
impl Debug for EditResult
Auto Trait Implementations§
impl Freeze for EditResult
impl RefUnwindSafe for EditResult
impl Send for EditResult
impl Sync for EditResult
impl Unpin for EditResult
impl UnsafeUnpin for EditResult
impl UnwindSafe for EditResult
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