pub struct Style {Show 16 fields
pub style_type: Option<StyleType>,
pub style_id: String,
pub name: Option<String>,
pub based_on: Option<String>,
pub next_style: Option<String>,
pub link: Option<String>,
pub is_default: bool,
pub is_custom: bool,
pub ui_priority: Option<u32>,
pub semi_hidden: bool,
pub unhide_when_used: bool,
pub qformat: bool,
pub paragraph_properties: Option<ParagraphProperties>,
pub run_properties: Option<RunProperties>,
pub unknown_children: Vec<RawXmlNode>,
pub unknown_attrs: Vec<(String, String)>,
}Expand description
A single style definition
Fields§
§style_type: Option<StyleType>Style type (paragraph, character, table, numbering)
style_id: StringStyle ID
name: Option<String>Display name
based_on: Option<String>Based-on style ID
next_style: Option<String>Next paragraph style ID
link: Option<String>Link to paired style
is_default: boolIs this the default style for its type
is_custom: boolIs this a custom style
ui_priority: Option<u32>UI priority for sorting
Semi-hidden (not in style gallery by default)
unhide_when_used: boolUnhide when used
qformat: boolShow in quick styles gallery
paragraph_properties: Option<ParagraphProperties>Paragraph properties
run_properties: Option<RunProperties>Run properties
unknown_children: Vec<RawXmlNode>Unknown children (preserved for round-trip)
unknown_attrs: Vec<(String, String)>Unknown attributes (preserved for round-trip)
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Style
impl RefUnwindSafe for Style
impl Send for Style
impl Sync for Style
impl Unpin for Style
impl UnsafeUnpin for Style
impl UnwindSafe for Style
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