Struct google_docs1::api::ParagraphStyle [−][src]
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]
fn clone(&self) -> ParagraphStyle
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for ParagraphStyle
[src]
impl Default for ParagraphStyle
[src]
fn default() -> ParagraphStyle
[src]
impl<'de> Deserialize<'de> for ParagraphStyle
[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
impl Part for ParagraphStyle
[src]
impl Serialize for ParagraphStyle
[src]
Auto Trait Implementations
impl RefUnwindSafe for ParagraphStyle
impl Send for ParagraphStyle
impl Sync for ParagraphStyle
impl Unpin for ParagraphStyle
impl UnwindSafe for ParagraphStyle
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,
impl<T> From<T> for T
[src]
impl<T> Instrument for T
[src]
pub fn instrument(self, span: Span) -> Instrumented<Self>
[src]
pub fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,