pub struct MoveOutcome {
pub file_id: String,
pub name: String,
pub current_parents: Vec<String>,
pub is_folder: bool,
pub crosses_drive_boundary: bool,
pub visibility: Option<VisibilityDiffReport>,
pub result: MoveResult,
}Expand description
What happened (or, in a plan, would happen) to one file.
Fields§
§file_id: StringThe Drive file id acted on.
name: StringThe file’s name at the time it was planned.
current_parents: Vec<String>The file’s parent folder ids before this move — what execute
passes as removeParents. Also shown in --dry-run output as the
“from” side of the move.
is_folder: boolWhether the moved item is itself a folder — its own visibility changes without its contents’ visibility being evaluated (folder moves don’t recurse in v1). The CLI warns loudly on this.
crosses_drive_boundary: boolWhether this move crosses a My Drive / Shared Drive boundary.
visibility: Option<VisibilityDiffReport>The visibility diff, when the move would change anything. None
when the diff is empty (nothing to report) — see the type’s doc.
result: MoveResultThe classification / outcome.
Trait Implementations§
Source§impl Clone for MoveOutcome
impl Clone for MoveOutcome
Source§fn clone(&self) -> MoveOutcome
fn clone(&self) -> MoveOutcome
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 MoveOutcome
impl Debug for MoveOutcome
Auto Trait Implementations§
impl Freeze for MoveOutcome
impl RefUnwindSafe for MoveOutcome
impl Send for MoveOutcome
impl Sync for MoveOutcome
impl Unpin for MoveOutcome
impl UnsafeUnpin for MoveOutcome
impl UnwindSafe for MoveOutcome
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