pub struct SetDataValidationRequest {
pub range: GridRange,
pub rule: Option<DataValidationRule>,
}Expand description
SetDataValidationRequest.
rule: None clears the range’s validation — the API’s own
documented meaning for an absent rule, which is exactly what
clear-data-validation sends and why Self::rule is
skip_serializing_if-omitted rather than sent as an explicit null.
Fields§
§range: GridRangeWhich cells this applies to.
rule: Option<DataValidationRule>The rule to set, or None to clear.
Trait Implementations§
Source§impl Clone for SetDataValidationRequest
impl Clone for SetDataValidationRequest
Source§impl Debug for SetDataValidationRequest
impl Debug for SetDataValidationRequest
Source§impl Default for SetDataValidationRequest
impl Default for SetDataValidationRequest
impl Eq for SetDataValidationRequest
Source§impl PartialEq for SetDataValidationRequest
impl PartialEq for SetDataValidationRequest
Source§impl Serialize for SetDataValidationRequest
impl Serialize for SetDataValidationRequest
impl StructuralPartialEq for SetDataValidationRequest
Auto Trait Implementations§
impl Freeze for SetDataValidationRequest
impl RefUnwindSafe for SetDataValidationRequest
impl Send for SetDataValidationRequest
impl Sync for SetDataValidationRequest
impl Unpin for SetDataValidationRequest
impl UnsafeUnpin for SetDataValidationRequest
impl UnwindSafe for SetDataValidationRequest
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