Struct google_docs1::api::ParagraphStyle[][src]

pub struct ParagraphStyle {
    pub alignment: Option<String>,
    pub avoid_widow_and_orphan: Option<bool>,
    pub border_between: Option<ParagraphBorder>,
    pub border_bottom: Option<ParagraphBorder>,
    pub border_left: Option<ParagraphBorder>,
    pub border_right: Option<ParagraphBorder>,
    pub border_top: Option<ParagraphBorder>,
    pub direction: Option<String>,
    pub heading_id: Option<String>,
    pub indent_end: Option<Dimension>,
    pub indent_first_line: Option<Dimension>,
    pub indent_start: Option<Dimension>,
    pub keep_lines_together: Option<bool>,
    pub keep_with_next: Option<bool>,
    pub line_spacing: Option<f32>,
    pub named_style_type: Option<String>,
    pub shading: Option<Shading>,
    pub space_above: Option<Dimension>,
    pub space_below: Option<Dimension>,
    pub spacing_mode: Option<String>,
    pub tab_stops: Option<Vec<TabStop>>,
}

Styles that apply to a whole paragraph. Inherited paragraph styles are represented as unset fields in this message. A paragraph style’s parent depends on where the paragraph style is defined: * The ParagraphStyle on a Paragraph inherits from the paragraph’s corresponding named style type. * The ParagraphStyle on a named style inherits from the normal text named style. * The ParagraphStyle of the normal text named style inherits from the default paragraph style in the Docs editor. * The ParagraphStyle on a Paragraph element that is contained in a table may inherit its paragraph style from the table style. If the paragraph style does not inherit from a parent, unsetting fields will revert the style to a value matching the defaults in the Docs editor.

This type is not used in any activity, and only used as part of another schema.

Fields

alignment: Option<String>

The text alignment for this paragraph.

avoid_widow_and_orphan: Option<bool>

Whether to avoid widows and orphans for the paragraph. If unset, the value is inherited from the parent.

border_between: Option<ParagraphBorder>

The border between this paragraph and the next and previous paragraphs. If unset, the value is inherited from the parent. The between border is rendered when the adjacent paragraph has the same border and indent properties. Paragraph borders cannot be partially updated. When making changes to a paragraph border the new border must be specified in its entirety.

border_bottom: Option<ParagraphBorder>

The border at the bottom of this paragraph. If unset, the value is inherited from the parent. The bottom border is rendered when the paragraph below has different border and indent properties. Paragraph borders cannot be partially updated. When making changes to a paragraph border the new border must be specified in its entirety.

border_left: Option<ParagraphBorder>

The border to the left of this paragraph. If unset, the value is inherited from the parent. Paragraph borders cannot be partially updated. When making changes to a paragraph border the new border must be specified in its entirety.

border_right: Option<ParagraphBorder>

The border to the right of this paragraph. If unset, the value is inherited from the parent. Paragraph borders cannot be partially updated. When making changes to a paragraph border the new border must be specified in its entirety.

border_top: Option<ParagraphBorder>

The border at the top of this paragraph. If unset, the value is inherited from the parent. The top border is rendered when the paragraph above has different border and indent properties. Paragraph borders cannot be partially updated. When making changes to a paragraph border the new border must be specified in its entirety.

direction: Option<String>

The text direction of this paragraph. If unset, the value defaults to LEFT_TO_RIGHT since paragraph direction is not inherited.

heading_id: Option<String>

The heading ID of the paragraph. If empty, then this paragraph is not a heading. This property is read-only.

indent_end: Option<Dimension>

The amount of indentation for the paragraph on the side that corresponds to the end of the text, based on the current paragraph direction. If unset, the value is inherited from the parent.

indent_first_line: Option<Dimension>

The amount of indentation for the first line of the paragraph. If unset, the value is inherited from the parent.

indent_start: Option<Dimension>

The amount of indentation for the paragraph on the side that corresponds to the start of the text, based on the current paragraph direction. If unset, the value is inherited from the parent.

keep_lines_together: Option<bool>

Whether all lines of the paragraph should be laid out on the same page or column if possible. If unset, the value is inherited from the parent.

keep_with_next: Option<bool>

Whether at least a part of this paragraph should be laid out on the same page or column as the next paragraph if possible. If unset, the value is inherited from the parent.

line_spacing: Option<f32>

The amount of space between lines, as a percentage of normal, where normal is represented as 100.0. If unset, the value is inherited from the parent.

named_style_type: Option<String>

The named style type of the paragraph. Since updating the named style type affects other properties within ParagraphStyle, the named style type is applied before the other properties are updated.

shading: Option<Shading>

The shading of the paragraph. If unset, the value is inherited from the parent.

space_above: Option<Dimension>

The amount of extra space above the paragraph. If unset, the value is inherited from the parent.

space_below: Option<Dimension>

The amount of extra space below the paragraph. If unset, the value is inherited from the parent.

spacing_mode: Option<String>

The spacing mode for the paragraph.

tab_stops: Option<Vec<TabStop>>

A list of the tab stops for this paragraph. The list of tab stops is not inherited. This property is read-only.

Trait Implementations

impl Clone for ParagraphStyle[src]

impl Debug for ParagraphStyle[src]

impl Default for ParagraphStyle[src]

impl<'de> Deserialize<'de> for ParagraphStyle[src]

impl Part for ParagraphStyle[src]

impl Serialize for ParagraphStyle[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.