pub struct CellFormatFlags {Show 20 fields
pub bold: Option<bool>,
pub italic: Option<bool>,
pub strikethrough: Option<bool>,
pub underline: Option<bool>,
pub font_size: Option<i64>,
pub text_color: Option<String>,
pub background: Option<String>,
pub horizontal_align: Option<String>,
pub vertical_align: Option<String>,
pub number_format_pattern: Option<String>,
pub number_format_type: Option<String>,
pub wrap: Option<String>,
pub font_family: Option<String>,
pub text_rotation: Option<TextRotationFlag>,
pub hyperlink_display_type: Option<String>,
pub padding_top: Option<i64>,
pub padding_right: Option<i64>,
pub padding_bottom: Option<i64>,
pub padding_left: Option<i64>,
pub text_direction: Option<String>,
}Expand description
The CellFormat flags format-cells exposes.
Every field optional; [build_cell_format] refuses an all-None set
and builds the fields mask from exactly the ones populated, following
SheetPropertiesUpdate’s discipline.
Fields§
§bold: Option<bool>Bold.
italic: Option<bool>Italic.
strikethrough: Option<bool>Strikethrough.
underline: Option<bool>Underline.
font_size: Option<i64>Point size.
text_color: Option<String>#RRGGBB text color.
background: Option<String>#RRGGBB background color.
horizontal_align: Option<String>Already wire-shaped ("LEFT"/"CENTER"/"RIGHT") — the CLI’s
clap::ValueEnum validates and normalises it, so nothing here can
be a value Sheets would reject as a grammar error.
vertical_align: Option<String>Already wire-shaped ("TOP"/"MIDDLE"/"BOTTOM").
number_format_pattern: Option<String>Display pattern, e.g. "#,##0.00". Must be given together with
number_format_type.
number_format_type: Option<String>Already wire-shaped ("NUMBER", "CURRENCY", …). Must be given
together with number_format_pattern.
wrap: Option<String>Already wire-shaped ("OVERFLOW_CELL"/"CLIP"/"WRAP").
font_family: Option<String>Font family name, e.g. "Arial".
text_rotation: Option<TextRotationFlag>The rotation angle/vertical-stacking choice, if any.
hyperlink_display_type: Option<String>Already wire-shaped ("LINKED"/"PLAIN_TEXT").
padding_top: Option<i64>Top padding, in pixels.
padding_right: Option<i64>Right padding, in pixels.
padding_bottom: Option<i64>Bottom padding, in pixels.
padding_left: Option<i64>Left padding, in pixels.
text_direction: Option<String>Already wire-shaped ("LEFT_TO_RIGHT"/"RIGHT_TO_LEFT").
Trait Implementations§
Source§impl Clone for CellFormatFlags
impl Clone for CellFormatFlags
Source§impl Debug for CellFormatFlags
impl Debug for CellFormatFlags
Source§impl Default for CellFormatFlags
impl Default for CellFormatFlags
impl Eq for CellFormatFlags
Source§impl PartialEq for CellFormatFlags
impl PartialEq for CellFormatFlags
impl StructuralPartialEq for CellFormatFlags
Auto Trait Implementations§
impl Freeze for CellFormatFlags
impl RefUnwindSafe for CellFormatFlags
impl Send for CellFormatFlags
impl Sync for CellFormatFlags
impl Unpin for CellFormatFlags
impl UnsafeUnpin for CellFormatFlags
impl UnwindSafe for CellFormatFlags
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