pub struct SpreadsheetPropertiesUpdate {
pub locale: Option<String>,
pub time_zone: Option<String>,
pub auto_recalc: Option<RecalculationInterval>,
pub iterative_calculation_settings: Option<IterativeCalculationSettings>,
}Expand description
The mutable subset of a workbook’s properties this crate can set
(update-workbook-properties, issue #1836).
Deliberately not SpreadsheetProperties itself, for the same reason
SheetPropertiesUpdate is not SheetProperties: reusing the response
type would serialise whatever else it happened to carry, and a field mask
widened by accident is how an unintended property gets overwritten. Every
field is independently optional and structure.rs::build_request names
in fields exactly the ones the caller actually set — never more, since
an unset field named in the mask would blank it rather than leave it
alone.
iterative_calculation_settings is None both when the caller never
touched iterative calculation (in which case fields omits
iterativeCalculationSettings and this value is never serialised) and
when the caller explicitly turned it off (in which case fields does
name it, so the omitted key clears the property) — structure.rs’s
IterativeCalculationToggle is what tells the two apart before the mask
is built. PartialEq-only, not Eq, for the same reason
IterativeCalculationSettings is.
Fields§
§locale: Option<String>The new locale, for --locale.
time_zone: Option<String>The new time zone, for --time-zone.
auto_recalc: Option<RecalculationInterval>The new recalculation interval, for --auto-recalc.
iterative_calculation_settings: Option<IterativeCalculationSettings>The new iterative-calculation settings, for --iterative-calculation on; None to leave it untouched or to turn it off — see this
struct’s own doc comment for how fields disambiguates the two.
Trait Implementations§
Source§impl Clone for SpreadsheetPropertiesUpdate
impl Clone for SpreadsheetPropertiesUpdate
Source§impl Debug for SpreadsheetPropertiesUpdate
impl Debug for SpreadsheetPropertiesUpdate
impl StructuralPartialEq for SpreadsheetPropertiesUpdate
Auto Trait Implementations§
impl Freeze for SpreadsheetPropertiesUpdate
impl RefUnwindSafe for SpreadsheetPropertiesUpdate
impl Send for SpreadsheetPropertiesUpdate
impl Sync for SpreadsheetPropertiesUpdate
impl Unpin for SpreadsheetPropertiesUpdate
impl UnsafeUnpin for SpreadsheetPropertiesUpdate
impl UnwindSafe for SpreadsheetPropertiesUpdate
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<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