pub struct BlockReasons {
pub visibility_increase: bool,
pub visibility_decrease: bool,
pub drive_boundary_crossing: bool,
}Expand description
Which safety gate(s) block a move.
A struct of bools, not a single-variant enum: a move can simultaneously fail more than one gate, and the audit log should say so precisely rather than reporting only the first match.
Fields§
§visibility_increase: booldiff.added was non-empty and allow_visibility_increase wasn’t set.
visibility_decrease: booldiff.removed was non-empty and allow_visibility_decrease wasn’t
set.
drive_boundary_crossing: boolThe move crosses a My Drive / Shared Drive boundary and
allow_drive_boundary_crossing wasn’t set.
Implementations§
Trait Implementations§
Source§impl Clone for BlockReasons
impl Clone for BlockReasons
Source§fn clone(&self) -> BlockReasons
fn clone(&self) -> BlockReasons
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 BlockReasons
Source§impl Debug for BlockReasons
impl Debug for BlockReasons
Source§impl Default for BlockReasons
impl Default for BlockReasons
Source§fn default() -> BlockReasons
fn default() -> BlockReasons
Returns the “default value” for a type. Read more
impl Eq for BlockReasons
Source§impl PartialEq for BlockReasons
impl PartialEq for BlockReasons
Source§impl Serialize for BlockReasons
impl Serialize for BlockReasons
impl StructuralPartialEq for BlockReasons
Auto Trait Implementations§
impl Freeze for BlockReasons
impl RefUnwindSafe for BlockReasons
impl Send for BlockReasons
impl Sync for BlockReasons
impl Unpin for BlockReasons
impl UnsafeUnpin for BlockReasons
impl UnwindSafe for BlockReasons
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.