pub struct CellFormat {
pub background_color: Option<Color>,
pub background_color_style: Option<ColorStyle>,
pub borders: Option<Borders>,
pub horizontal_alignment: Option<String>,
pub hyperlink_display_type: Option<String>,
pub number_format: Option<NumberFormat>,
pub padding: Option<Padding>,
pub text_direction: Option<String>,
pub text_format: Option<TextFormat>,
pub text_rotation: Option<TextRotation>,
pub vertical_alignment: Option<String>,
pub wrap_strategy: Option<String>,
}Expand description
The format of a cell.
This type is not used in any activity, and only used as part of another schema.
Fields§
§background_color: Option<Color>The background color of the cell. Deprecated: Use background_color_style.
background_color_style: Option<ColorStyle>The background color of the cell. If background_color is also set, this field takes precedence.
borders: Option<Borders>The borders of the cell.
horizontal_alignment: Option<String>The horizontal alignment of the value in the cell.
hyperlink_display_type: Option<String>If one exists, how a hyperlink should be displayed in the cell.
number_format: Option<NumberFormat>A format describing how number values should be represented to the user.
padding: Option<Padding>The padding of the cell.
text_direction: Option<String>The direction of the text in the cell.
text_format: Option<TextFormat>The format of the text in the cell (unless overridden by a format run). Setting a cell-level link here clears the cell’s existing links. Setting the link field in a TextFormatRun takes precedence over the cell-level link.
text_rotation: Option<TextRotation>The rotation applied to text in the cell.
vertical_alignment: Option<String>The vertical alignment of the value in the cell.
wrap_strategy: Option<String>The wrap strategy for the value in the cell.
Trait Implementations§
Source§impl Clone for CellFormat
impl Clone for CellFormat
Source§fn clone(&self) -> CellFormat
fn clone(&self) -> CellFormat
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more