pub struct PartialParaShape {
pub alignment: Option<Alignment>,
pub line_spacing: Option<LineSpacing>,
pub spacing: Option<Spacing>,
pub indent: Option<Indent>,
pub break_type: Option<BreakType>,
pub keep_with_next: Option<bool>,
pub keep_lines_together: Option<bool>,
pub widow_orphan: Option<bool>,
pub border_fill_id: Option<BorderFillIndex>,
pub heading_type: Option<HeadingType>,
}Expand description
Paragraph shape with all optional fields (for YAML parsing and inheritance).
Fields§
§alignment: Option<Alignment>Text alignment.
line_spacing: Option<LineSpacing>Line spacing.
spacing: Option<Spacing>Vertical spacing (before/after paragraph).
indent: Option<Indent>Indentation.
break_type: Option<BreakType>Page/column break before paragraph.
keep_with_next: Option<bool>Keep paragraph with next (prevent page break between).
keep_lines_together: Option<bool>Keep lines together (prevent page break within paragraph).
widow_orphan: Option<bool>Widow/orphan control (minimum 2 lines).
border_fill_id: Option<BorderFillIndex>Border/fill reference (for paragraph borders and backgrounds).
heading_type: Option<HeadingType>Heading type for outline/numbering styles.
Implementations§
Source§impl PartialParaShape
impl PartialParaShape
Sourcepub fn merge(&mut self, other: &PartialParaShape)
pub fn merge(&mut self, other: &PartialParaShape)
Merges other into self (child overrides parent, field-level deep merge).
Nested structs (line_spacing, spacing, indent) are merged at the field
level, not replaced wholesale. This means a child can override
spacing.after while inheriting spacing.before from the parent.
Trait Implementations§
Source§impl Clone for PartialParaShape
impl Clone for PartialParaShape
Source§fn clone(&self) -> PartialParaShape
fn clone(&self) -> PartialParaShape
Returns a duplicate of the value. Read more
1.0.0 · 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 PartialParaShape
impl Debug for PartialParaShape
Source§impl Default for PartialParaShape
impl Default for PartialParaShape
Source§fn default() -> PartialParaShape
fn default() -> PartialParaShape
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for PartialParaShape
impl<'de> Deserialize<'de> for PartialParaShape
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§impl JsonSchema for PartialParaShape
impl JsonSchema for PartialParaShape
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreSource§impl PartialEq for PartialParaShape
impl PartialEq for PartialParaShape
Source§impl Serialize for PartialParaShape
impl Serialize for PartialParaShape
impl StructuralPartialEq for PartialParaShape
Auto Trait Implementations§
impl Freeze for PartialParaShape
impl RefUnwindSafe for PartialParaShape
impl Send for PartialParaShape
impl Sync for PartialParaShape
impl Unpin for PartialParaShape
impl UnwindSafe for PartialParaShape
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