pub struct TextFormat {
pub bold: Option<bool>,
pub font_family: Option<String>,
pub font_size: Option<i32>,
pub foreground_color: Option<Color>,
pub foreground_color_style: Option<ColorStyle>,
pub italic: Option<bool>,
pub link: Option<Link>,
pub strikethrough: Option<bool>,
pub underline: Option<bool>,
}
Expand description
The format of a run of text in a cell. Absent values indicate that the field isn’t specified.
This type is not used in any activity, and only used as part of another schema.
Fields§
§bold: Option<bool>
True if the text is bold.
font_family: Option<String>
The font family.
font_size: Option<i32>
The size of the font.
foreground_color: Option<Color>
The foreground color of the text. Deprecated: Use foreground_color_style.
foreground_color_style: Option<ColorStyle>
The foreground color of the text. If foreground_color is also set, this field takes precedence.
italic: Option<bool>
True if the text is italicized.
link: Option<Link>
The link destination of the text, if any. Setting the link field in a TextFormatRun will clear the cell’s existing links or a cell-level link set in the same request. When a link is set, the text foreground color will be set to the default link color and the text will be underlined. If these fields are modified in the same request, those values will be used instead of the link defaults.
strikethrough: Option<bool>
True if the text has a strikethrough.
underline: Option<bool>
True if the text is underlined.
Trait Implementations§
Source§impl Clone for TextFormat
impl Clone for TextFormat
Source§fn clone(&self) -> TextFormat
fn clone(&self) -> TextFormat
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for TextFormat
impl Debug for TextFormat
Source§impl Default for TextFormat
impl Default for TextFormat
Source§fn default() -> TextFormat
fn default() -> TextFormat
Source§impl<'de> Deserialize<'de> for TextFormat
impl<'de> Deserialize<'de> for TextFormat
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 TextFormat
impl Serialize for TextFormat
impl Part for TextFormat
Auto Trait Implementations§
impl Freeze for TextFormat
impl RefUnwindSafe for TextFormat
impl Send for TextFormat
impl Sync for TextFormat
impl Unpin for TextFormat
impl UnwindSafe for TextFormat
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