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 moreSource§impl Debug for CellFormat
impl Debug for CellFormat
Source§impl Default for CellFormat
impl Default for CellFormat
Source§fn default() -> CellFormat
fn default() -> CellFormat
Source§impl<'de> Deserialize<'de> for CellFormat
impl<'de> Deserialize<'de> for CellFormat
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Source§impl Serialize for CellFormat
impl Serialize for CellFormat
impl Part for CellFormat
Auto Trait Implementations§
impl Freeze for CellFormat
impl RefUnwindSafe for CellFormat
impl Send for CellFormat
impl Sync for CellFormat
impl Unpin for CellFormat
impl UnwindSafe for CellFormat
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