pub struct EditOutcome {
pub file_id: String,
pub file_name: Option<String>,
pub resolved_folder_id: Option<String>,
pub result: EditResult,
}Expand description
The planned (and, after a real run, final) outcome of one edit call.
Fields§
§file_id: StringThe target file id.
file_name: Option<String>The file’s name at the time of the attempt, once known (absent if
the initial files.get itself failed).
resolved_folder_id: Option<String>The folder the write-permission gate evaluated against — the
target’s resolved current parent, when the target has exactly one;
None for an orphan target, a target refused before the gate ran
(RefusedNativeDocument), or a target with more than one current
parent (no single folder to report).
result: EditResultThe result.
Trait Implementations§
Source§impl Clone for EditOutcome
impl Clone for EditOutcome
Source§fn clone(&self) -> EditOutcome
fn clone(&self) -> EditOutcome
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 EditOutcome
impl Debug for EditOutcome
Source§impl JsonlSerialize for EditOutcome
impl JsonlSerialize for EditOutcome
Auto Trait Implementations§
impl Freeze for EditOutcome
impl RefUnwindSafe for EditOutcome
impl Send for EditOutcome
impl Sync for EditOutcome
impl Unpin for EditOutcome
impl UnsafeUnpin for EditOutcome
impl UnwindSafe for EditOutcome
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