pub struct ParsedStyleSheet {Show 13 fields
pub paragraph_styles: Vec<ParagraphStyleDefinition>,
pub paragraph_style_by_id: HashMap<String, ParagraphStyleDefinition>,
pub run_style_by_id: HashMap<String, TextStyle>,
pub table_style_by_id: HashMap<String, ParsedTableStyleDefinition>,
pub default_table_style_id: Option<String>,
pub table_paragraph_spacing_by_style_id: HashMap<String, ParagraphSpacing>,
pub doc_default_paragraph_spacing: Option<ParagraphSpacing>,
pub default_paragraph_style: Option<ParagraphStyle>,
pub default_paragraph_text_alignment: Option<ParagraphTextAlignment>,
pub default_paragraph_style_id: Option<String>,
pub default_run_style: Option<TextStyle>,
pub theme_fonts: ThemeFontMap,
pub theme_colors: ThemeColorMap,
}Expand description
Mirrors TypeScript ParsedStyleSheet.
Fields§
§paragraph_styles: Vec<ParagraphStyleDefinition>§paragraph_style_by_id: HashMap<String, ParagraphStyleDefinition>§run_style_by_id: HashMap<String, TextStyle>§table_style_by_id: HashMap<String, ParsedTableStyleDefinition>§default_table_style_id: Option<String>§table_paragraph_spacing_by_style_id: HashMap<String, ParagraphSpacing>Table styles’ own w:pPr spacing (basedOn-resolved). ECMA-376 layers
table-style paragraph properties between document defaults and
paragraph styles for every paragraph inside a styled table.
doc_default_paragraph_spacing: Option<ParagraphSpacing>§default_paragraph_style: Option<ParagraphStyle>§default_paragraph_text_alignment: Option<ParagraphTextAlignment>§default_paragraph_style_id: Option<String>§default_run_style: Option<TextStyle>§theme_fonts: ThemeFontMap§theme_colors: ThemeColorMapImplementations§
Trait Implementations§
Source§impl Clone for ParsedStyleSheet
impl Clone for ParsedStyleSheet
Source§impl Debug for ParsedStyleSheet
impl Debug for ParsedStyleSheet
Source§impl PartialEq for ParsedStyleSheet
impl PartialEq for ParsedStyleSheet
impl StructuralPartialEq for ParsedStyleSheet
Auto Trait Implementations§
impl Freeze for ParsedStyleSheet
impl RefUnwindSafe for ParsedStyleSheet
impl Send for ParsedStyleSheet
impl Sync for ParsedStyleSheet
impl Unpin for ParsedStyleSheet
impl UnsafeUnpin for ParsedStyleSheet
impl UnwindSafe for ParsedStyleSheet
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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 more