pub struct MoveGateFlags {
pub allow_visibility_increase: bool,
pub allow_visibility_decrease: bool,
pub allow_drive_boundary_crossing: bool,
}Expand description
The three independent, per-move opt-ins classify gates on.
A small struct local to this module (not crate::drive::file_move’s
eventual MoveOptions, which also carries the destination folder id and
other orchestration-only fields) — keeps this module’s public API free
of more than clippy’s bool-parameter limit and free of any dependency on
file_move, consistent with staying pure and independently testable.
Fields§
§allow_visibility_increase: boolAllows a move that would grant new principals access.
allow_visibility_decrease: boolAllows a move that would revoke existing principals’ access.
allow_drive_boundary_crossing: boolAllows a move across a My Drive / Shared Drive boundary.
Trait Implementations§
Source§impl Clone for MoveGateFlags
impl Clone for MoveGateFlags
Source§fn clone(&self) -> MoveGateFlags
fn clone(&self) -> MoveGateFlags
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 moreimpl Copy for MoveGateFlags
Source§impl Debug for MoveGateFlags
impl Debug for MoveGateFlags
Source§impl Default for MoveGateFlags
impl Default for MoveGateFlags
Source§fn default() -> MoveGateFlags
fn default() -> MoveGateFlags
Returns the “default value” for a type. Read more
impl Eq for MoveGateFlags
Source§impl PartialEq for MoveGateFlags
impl PartialEq for MoveGateFlags
impl StructuralPartialEq for MoveGateFlags
Auto Trait Implementations§
impl Freeze for MoveGateFlags
impl RefUnwindSafe for MoveGateFlags
impl Send for MoveGateFlags
impl Sync for MoveGateFlags
impl Unpin for MoveGateFlags
impl UnsafeUnpin for MoveGateFlags
impl UnwindSafe for MoveGateFlags
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§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.