pub enum ProtectionVerb {
ProtectRange {
sheet: Option<String>,
range: Option<String>,
whole_sheet: bool,
description: Option<String>,
warning_only: bool,
editors: Vec<String>,
},
UpdateProtection {
sheet: Option<String>,
range: Option<String>,
whole_sheet: bool,
description: Option<String>,
warning_only: Option<bool>,
add_editors: Vec<String>,
remove_editors: Vec<String>,
},
UnprotectRange {
sheet: Option<String>,
range: Option<String>,
whole_sheet: bool,
},
}Expand description
Which mutation to perform.
Variants§
ProtectRange
Protect a range (or, with whole_sheet, an entire sheet).
Fields
sheet: Option<String>A sheet title, supplying a prefix for a bare range. Also the
target sheet directly when whole_sheet is set.
UpdateProtection
Change an existing protected range’s description, warning-only flag, or editor list.
Fields
sheet: Option<String>A sheet title, supplying a prefix for a bare range. Also the
target sheet directly when whole_sheet is set.
range: Option<String>An explicit A1 range identifying the existing protection to
change, by exact match. Mutually exclusive with whole_sheet.
UnprotectRange
Remove a protected range.
Fields
sheet: Option<String>A sheet title, supplying a prefix for a bare range. Also the
target sheet directly when whole_sheet is set.
range: Option<String>An explicit A1 range identifying the protection to remove, by
exact match. Mutually exclusive with whole_sheet.
whole_sheet: boolTarget the whole-sheet protection on sheet — see
Self::UpdateProtection::whole_sheet.
Trait Implementations§
Source§impl Clone for ProtectionVerb
impl Clone for ProtectionVerb
Source§impl Debug for ProtectionVerb
impl Debug for ProtectionVerb
impl Eq for ProtectionVerb
Source§impl PartialEq for ProtectionVerb
impl PartialEq for ProtectionVerb
impl StructuralPartialEq for ProtectionVerb
Auto Trait Implementations§
impl Freeze for ProtectionVerb
impl RefUnwindSafe for ProtectionVerb
impl Send for ProtectionVerb
impl Sync for ProtectionVerb
impl Unpin for ProtectionVerb
impl UnsafeUnpin for ProtectionVerb
impl UnwindSafe for ProtectionVerb
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
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§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more