pub struct DriveMutationOutcome {
pub operation: &'static str,
pub file_id: String,
pub file_name: String,
pub status: String,
pub added_principals: Vec<String>,
pub removed_principals: Vec<String>,
pub crosses_drive_boundary: bool,
pub error: Option<String>,
pub duration: Duration,
}Expand description
The outcome of one drive rename/drive move attempt.
Fields§
§operation: &'static str"rename" or "move"; becomes the record’s command.
file_id: StringThe Drive file id acted on.
file_name: StringThe file’s name at the time of the attempt.
status: StringThe domain outcome (e.g. "moved", "blocked", "already-in-folder",
"failed" — kebab-case, matching MoveResult’s
#[serde(tag = "status", rename_all = "kebab-case")]).
added_principals: Vec<String>Principals gaining access, when the visibility diff detected an
increase. Empty for rename (which never changes visibility) and
for a move with no visibility change.
removed_principals: Vec<String>Principals losing access — the decrease-side counterpart of
added_principals.
crosses_drive_boundary: boolWhether the file moved across a My Drive / Shared Drive boundary.
error: Option<String>The API/validation error, when the attempt failed.
duration: DurationWall time of the attempt.
Trait Implementations§
Source§impl Clone for DriveMutationOutcome
impl Clone for DriveMutationOutcome
Source§fn clone(&self) -> DriveMutationOutcome
fn clone(&self) -> DriveMutationOutcome
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 moreAuto Trait Implementations§
impl Freeze for DriveMutationOutcome
impl RefUnwindSafe for DriveMutationOutcome
impl Send for DriveMutationOutcome
impl Sync for DriveMutationOutcome
impl Unpin for DriveMutationOutcome
impl UnsafeUnpin for DriveMutationOutcome
impl UnwindSafe for DriveMutationOutcome
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