pub struct ParagraphProperty<'a> {
    pub style_id: Option<ParagraphStyleId<'a>>,
    pub widow_control: Option<WidowControl>,
    pub border: Option<Borders<'a>>,
    pub justification: Option<Justification>,
    pub numbering: Option<NumberingProperty>,
    pub spacing: Option<Spacing>,
    pub indent: Option<Indent>,
}
Expand description

Paragraph Property

use docx::formatting::{ParagraphProperty, JustificationVal};

let prop = ParagraphProperty::default()
    .style_id("foo")
    .justification(JustificationVal::Start)
    .numbering((10usize, 20usize));

Fields

style_id: Option<ParagraphStyleId<'a>>

Specifies the style ID of the paragraph style.

widow_control: Option<WidowControl>

Specifies whether enable widow control

border: Option<Borders<'a>>

Specifies borders for the paragraph.

justification: Option<Justification>

Specifies the paragraph alignment.

numbering: Option<NumberingProperty>

Specifies that the paragraph should be numbered.

spacing: Option<Spacing>

Specifies the spacing

indent: Option<Indent>

Specifies the paragraph indent

Implementations

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Returns the “default value” for a type. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.