pub struct ProtectedRangeUpdate {
pub protected_range_id: i64,
pub description: Option<String>,
pub warning_only: Option<bool>,
pub editors: Option<ProtectedRangeEditors>,
}Expand description
The mutable subset of a protected range update-protection can change.
Deliberately not ProtectedRange: reusing the response type would let
a caller accidentally attempt to overwrite range, which Sheets does
not allow this request to change at all — resizing a protection means
deleting and re-adding it, not updating.
Fields§
§protected_range_id: i64Which protected range to modify.
description: Option<String>The new description, when changing it.
warning_only: Option<bool>The new warning-only flag, when changing it.
editors: Option<ProtectedRangeEditors>The new, complete editor list, when changing it. Sheets has no
incremental add/remove — protection.rs computes this as the full
resulting set from the range’s current editors plus --add-editor/
minus --remove-editor.
Trait Implementations§
Source§impl Clone for ProtectedRangeUpdate
impl Clone for ProtectedRangeUpdate
Source§impl Debug for ProtectedRangeUpdate
impl Debug for ProtectedRangeUpdate
Source§impl Default for ProtectedRangeUpdate
impl Default for ProtectedRangeUpdate
impl Eq for ProtectedRangeUpdate
Source§impl PartialEq for ProtectedRangeUpdate
impl PartialEq for ProtectedRangeUpdate
Source§impl Serialize for ProtectedRangeUpdate
impl Serialize for ProtectedRangeUpdate
impl StructuralPartialEq for ProtectedRangeUpdate
Auto Trait Implementations§
impl Freeze for ProtectedRangeUpdate
impl RefUnwindSafe for ProtectedRangeUpdate
impl Send for ProtectedRangeUpdate
impl Sync for ProtectedRangeUpdate
impl Unpin for ProtectedRangeUpdate
impl UnsafeUnpin for ProtectedRangeUpdate
impl UnwindSafe for ProtectedRangeUpdate
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§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
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> ⓘ
Converts
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> ⓘ
Converts
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