pub struct ParagraphStyle {Show 28 fields
pub source_before_auto_spacing: Option<bool>,
pub source_after_auto_spacing: Option<bool>,
pub align: Option<ParagraphAlignment>,
pub snap_to_grid: Option<bool>,
pub source_snap_to_grid: Option<bool>,
pub source_has_snap_to_grid: Option<bool>,
pub source_inherited_snap_to_grid: Option<bool>,
pub source_table_snap_to_grid: Option<bool>,
pub text_alignment: Option<ParagraphTextAlignment>,
pub source_text_alignment: Option<ParagraphTextAlignment>,
pub source_has_text_alignment: Option<bool>,
pub source_inherited_text_alignment: Option<ParagraphTextAlignment>,
pub source_table_text_alignment: Option<ParagraphTextAlignment>,
pub heading_level: Option<HeadingLevel>,
pub style_id: Option<String>,
pub style_name: Option<String>,
pub numbering: Option<ParagraphNumbering>,
pub spacing: Option<ParagraphSpacing>,
pub indent: Option<ParagraphIndent>,
pub background_color: Option<String>,
pub borders: Option<ParagraphBorderSet>,
pub tab_stops: Option<Vec<ParagraphTabStop>>,
pub contextual_spacing: Option<bool>,
pub keep_next: Option<bool>,
pub keep_lines: Option<bool>,
pub widow_control: Option<bool>,
pub page_break_before: Option<bool>,
pub drop_cap: Option<ParagraphDropCap>,
}Expand description
Mirrors TypeScript ParagraphStyle.
Fields§
§source_before_auto_spacing: Option<bool>§source_after_auto_spacing: Option<bool>§align: Option<ParagraphAlignment>§snap_to_grid: Option<bool>§source_snap_to_grid: Option<bool>§source_has_snap_to_grid: Option<bool>§source_inherited_snap_to_grid: Option<bool>§source_table_snap_to_grid: Option<bool>§text_alignment: Option<ParagraphTextAlignment>§source_text_alignment: Option<ParagraphTextAlignment>§source_has_text_alignment: Option<bool>§source_inherited_text_alignment: Option<ParagraphTextAlignment>§source_table_text_alignment: Option<ParagraphTextAlignment>§heading_level: Option<HeadingLevel>§style_id: Option<String>§style_name: Option<String>§numbering: Option<ParagraphNumbering>§spacing: Option<ParagraphSpacing>§indent: Option<ParagraphIndent>§background_color: Option<String>§borders: Option<ParagraphBorderSet>§tab_stops: Option<Vec<ParagraphTabStop>>§contextual_spacing: Option<bool>§keep_next: Option<bool>§keep_lines: Option<bool>§widow_control: Option<bool>§page_break_before: Option<bool>§drop_cap: Option<ParagraphDropCap>Trait Implementations§
Source§impl Clone for ParagraphStyle
impl Clone for ParagraphStyle
Source§impl Debug for ParagraphStyle
impl Debug for ParagraphStyle
Source§impl Default for ParagraphStyle
impl Default for ParagraphStyle
Source§impl<'de> Deserialize<'de> for ParagraphStyle
impl<'de> Deserialize<'de> for ParagraphStyle
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>,
Deserialize this value from the given Serde deserializer. Read more
Source§fn from(style: ParagraphStyle) -> Self
fn from(style: ParagraphStyle) -> Self
Converts to this type from the input type.
Source§impl PartialEq for ParagraphStyle
impl PartialEq for ParagraphStyle
Source§impl Serialize for ParagraphStyle
impl Serialize for ParagraphStyle
impl StructuralPartialEq for ParagraphStyle
Auto Trait Implementations§
impl Freeze for ParagraphStyle
impl RefUnwindSafe for ParagraphStyle
impl Send for ParagraphStyle
impl Sync for ParagraphStyle
impl Unpin for ParagraphStyle
impl UnsafeUnpin for ParagraphStyle
impl UnwindSafe for ParagraphStyle
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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