pub struct StyleUpdateType {Show 24 fields
pub set_font_bold: Option<bool>,
pub set_font_italic: Option<bool>,
pub set_font_underline: Option<StUnderlineValues>,
pub set_font_color: Option<String>,
pub set_font_size: Option<f64>,
pub set_font_name: Option<String>,
pub set_font_outline: Option<bool>,
pub set_font_shadow: Option<bool>,
pub set_font_strike: Option<bool>,
pub set_font_condense: Option<bool>,
pub set_left_border_color: Option<String>,
pub set_right_border_color: Option<String>,
pub set_top_border_color: Option<String>,
pub set_bottom_border_color: Option<String>,
pub set_left_border_style: Option<StBorderStyle>,
pub set_right_border_style: Option<StBorderStyle>,
pub set_top_border_style: Option<StBorderStyle>,
pub set_bottom_border_style: Option<StBorderStyle>,
pub set_border_giagonal_up: Option<bool>,
pub set_border_giagonal_down: Option<bool>,
pub set_border_outline: Option<bool>,
pub set_pattern_fill: Option<PatternFill>,
pub set_alignment: Option<Alignment>,
pub set_num_fmt: Option<String>,
}Expand description
A partial style change: every Some field is applied, None fields keep
the cell’s current value.
Colors come in two shapes. Font and border colors (set_font_color,
set_*_border_color) are 8-hex-digit ARGB strings with no #, e.g.
"FF1976D2"; a #RRGGBB or 6-digit value yields no color and silently
does not render. Fill colors go through set_pattern_fill, whose
fg_color/bg_color are {red, green, blue} objects with 0–255 channels.
Fields§
§set_font_bold: Option<bool>§set_font_italic: Option<bool>§set_font_underline: Option<StUnderlineValues>§set_font_color: Option<String>§set_font_size: Option<f64>§set_font_name: Option<String>§set_font_outline: Option<bool>§set_font_shadow: Option<bool>§set_font_strike: Option<bool>§set_font_condense: Option<bool>§set_left_border_color: Option<String>§set_right_border_color: Option<String>§set_top_border_color: Option<String>§set_bottom_border_color: Option<String>§set_left_border_style: Option<StBorderStyle>§set_right_border_style: Option<StBorderStyle>§set_top_border_style: Option<StBorderStyle>§set_bottom_border_style: Option<StBorderStyle>§set_border_giagonal_up: Option<bool>§set_border_giagonal_down: Option<bool>§set_border_outline: Option<bool>§set_pattern_fill: Option<PatternFill>§set_alignment: Option<Alignment>§set_num_fmt: Option<String>Trait Implementations§
Source§impl Clone for StyleUpdateType
impl Clone for StyleUpdateType
Source§fn clone(&self) -> StyleUpdateType
fn clone(&self) -> StyleUpdateType
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for StyleUpdateType
impl Debug for StyleUpdateType
Source§impl Default for StyleUpdateType
impl Default for StyleUpdateType
Source§fn default() -> StyleUpdateType
fn default() -> StyleUpdateType
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for StyleUpdateType
impl<'de> Deserialize<'de> for StyleUpdateType
Source§fn deserialize<D>(
deserializer: D,
) -> Result<StyleUpdateType, <D as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
fn deserialize<D>(
deserializer: D,
) -> Result<StyleUpdateType, <D as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<_GentsDummyStyleUpdateType> for StyleUpdateType
impl From<_GentsDummyStyleUpdateType> for StyleUpdateType
Source§fn from(value: _GentsDummyStyleUpdateType) -> StyleUpdateType
fn from(value: _GentsDummyStyleUpdateType) -> StyleUpdateType
Converts to this type from the input type.
Source§impl Serialize for StyleUpdateType
impl Serialize for StyleUpdateType
Source§fn serialize<S>(
&self,
serializer: S,
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
S: Serializer,
fn serialize<S>(
&self,
serializer: S,
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
S: Serializer,
Serialize this value into the given Serde serializer. Read more
Auto Trait Implementations§
impl Freeze for StyleUpdateType
impl RefUnwindSafe for StyleUpdateType
impl Send for StyleUpdateType
impl Sync for StyleUpdateType
impl Unpin for StyleUpdateType
impl UnsafeUnpin for StyleUpdateType
impl UnwindSafe for StyleUpdateType
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
Mutably borrows from an owned value. Read more
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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> ⓘ
Converts
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> ⓘ
Converts
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 moreimpl<T> Read<Exclusive, BecauseExclusive> for Twhere
T: ?Sized,
Source§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
Source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct
self from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
Checks if
self is actually part of its subset T (and can be converted to it).Source§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
Use with care! Same as
self.to_subset but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self to the equivalent element of its superset.