pub struct ParaShape {Show 14 fields
pub alignment: Alignment,
pub line_spacing_type: LineSpacingType,
pub line_spacing_value: f64,
pub space_before: HwpUnit,
pub space_after: HwpUnit,
pub indent_left: HwpUnit,
pub indent_right: HwpUnit,
pub indent_first_line: HwpUnit,
pub break_type: BreakType,
pub keep_with_next: bool,
pub keep_lines_together: bool,
pub widow_orphan: bool,
pub border_fill_id: Option<BorderFillIndex>,
pub heading_type: HeadingType,
}Expand description
A fully-resolved paragraph shape (all fields present).
Fields§
§alignment: AlignmentText alignment.
line_spacing_type: LineSpacingTypeLine spacing type.
line_spacing_value: f64Line spacing value (percentage or fixed).
space_before: HwpUnitSpace before paragraph.
space_after: HwpUnitSpace after paragraph.
indent_left: HwpUnitLeft indentation.
indent_right: HwpUnitRight indentation.
indent_first_line: HwpUnitFirst-line indentation.
break_type: BreakTypePage/column break type.
keep_with_next: boolKeep paragraph with next.
keep_lines_together: boolKeep lines together.
widow_orphan: boolWidow/orphan control (default: true).
border_fill_id: Option<BorderFillIndex>Border/fill reference (None = no border/fill).
heading_type: HeadingTypeHeading type (None, Outline, Number, Bullet). Default: None.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for ParaShape
impl<'de> Deserialize<'de> for ParaShape
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 ParaShape
impl JsonSchema for ParaShape
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 moreimpl StructuralPartialEq for ParaShape
Auto Trait Implementations§
impl Freeze for ParaShape
impl RefUnwindSafe for ParaShape
impl Send for ParaShape
impl Sync for ParaShape
impl Unpin for ParaShape
impl UnwindSafe for ParaShape
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