[][src]Struct google_docs1::SectionStyle

pub struct SectionStyle {
    pub default_footer_id: Option<String>,
    pub margin_header: Option<Dimension>,
    pub margin_footer: Option<Dimension>,
    pub even_page_header_id: Option<String>,
    pub content_direction: Option<String>,
    pub margin_right: Option<Dimension>,
    pub column_separator_style: Option<String>,
    pub even_page_footer_id: Option<String>,
    pub first_page_footer_id: Option<String>,
    pub default_header_id: Option<String>,
    pub margin_bottom: Option<Dimension>,
    pub column_properties: Option<Vec<SectionColumnProperties>>,
    pub first_page_header_id: Option<String>,
    pub use_first_page_header_footer: Option<bool>,
    pub margin_left: Option<Dimension>,
    pub page_number_start: Option<i32>,
    pub margin_top: Option<Dimension>,
    pub section_type: Option<String>,
}

The styling that applies to a section.

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

Fields

default_footer_id: Option<String>

The ID of the default footer. If unset, the value inherits from the previous SectionBreak's SectionStyle. If the value is unset in the first SectionBreak, it inherits from DocumentStyle's default_footer_id.

This property is read-only.

margin_header: Option<Dimension>

The header margin of the section. If unset, uses margin_header from DocumentStyle. If updated, use_custom_header_footer_margins is set to true on DocumentStyle. The value of use_custom_header_footer_margins on DocumentStyle indicates if a header margin is being respected for this section.

When updating this property, setting a concrete value is required. Unsetting this property results in a 400 bad request error.

margin_footer: Option<Dimension>

The footer margin of the section. If unset, uses margin_footer from DocumentStyle. If updated, use_custom_header_footer_margins is set to true on DocumentStyle. The value of use_custom_header_footer_margins on DocumentStyle indicates if a footer margin is being respected for this section

When updating this property, setting a concrete value is required. Unsetting this property results in a 400 bad request error.

even_page_header_id: Option<String>

The ID of the header used only for even pages. If the value of DocumentStyle's use_even_page_header_footer is true, this value is used for the headers on even pages in the section. If it is false, the headers on even pages uses the default_header_id. If unset, the value inherits from the previous SectionBreak's SectionStyle. If the value is unset in the first SectionBreak, it inherits from DocumentStyle's even_page_header_id.

This property is read-only.

content_direction: Option<String>

The content direction of this section. If unset, the value defaults to LEFT_TO_RIGHT.

When updating this property, setting a concrete value is required. Unsetting this property results in a 400 bad request error.

margin_right: Option<Dimension>

The right page margin of the section. If unset, uses margin_right from DocumentStyle. Updating right margin causes columns in this section to resize. Since the margin affects column width, it is applied before column properties.

When updating this property, setting a concrete value is required. Unsetting this property results in a 400 bad request error.

column_separator_style: Option<String>

The style of column separators.

This style can be set even when there is one column in the section.

When updating this property, setting a concrete value is required. Unsetting this property results in a 400 bad request error.

even_page_footer_id: Option<String>

The ID of the footer used only for even pages. If the value of DocumentStyle's use_even_page_header_footer is true, this value is used for the footers on even pages in the section. If it is false, the footers on even pages uses the default_footer_id. If unset, the value inherits from the previous SectionBreak's SectionStyle. If the value is unset in the first SectionBreak, it inherits from DocumentStyle's even_page_footer_id.

This property is read-only.

first_page_footer_id: Option<String>

The ID of the footer used only for the first page of the section. If use_first_page_header_footer is true, this value is used for the footer on the first page of the section. If it is false, the footer on the first page of the section uses the default_footer_id. If unset, the value inherits from the previous SectionBreak's SectionStyle. If the value is unset in the first SectionBreak, it inherits from DocumentStyle's first_page_footer_id.

This property is read-only.

default_header_id: Option<String>

The ID of the default header. If unset, the value inherits from the previous SectionBreak's SectionStyle. If the value is unset in the first SectionBreak, it inherits from DocumentStyle's default_header_id.

This property is read-only.

margin_bottom: Option<Dimension>

The bottom page margin of the section. If unset, uses margin_bottom from DocumentStyle.

When updating this property, setting a concrete value is required. Unsetting this property results in a 400 bad request error.

column_properties: Option<Vec<SectionColumnProperties>>

The section's columns properties.

If empty, the section contains one column with the default properties in the Docs editor. A section can be updated to have no more than three columns.

When updating this property, setting a concrete value is required. Unsetting this property will result in a 400 bad request error.

first_page_header_id: Option<String>

The ID of the header used only for the first page of the section. If use_first_page_header_footer is true, this value is used for the header on the first page of the section. If it is false, the header on the first page of the section uses the default_header_id. If unset, the value inherits from the previous SectionBreak's SectionStyle. If the value is unset in the first SectionBreak, it inherits from DocumentStyle's first_page_header_id.

This property is read-only.

use_first_page_header_footer: Option<bool>

Indicates whether to use the first page header / footer IDs for the first page of the section. If unset, it inherits from DocumentStyle's use_first_page_header_footer for the first section. If the value is unset for subsequent sectors, it should be interpreted as false.

When updating this property, setting a concrete value is required. Unsetting this property results in a 400 bad request error.

margin_left: Option<Dimension>

The left page margin of the section. If unset, uses margin_left from DocumentStyle. Updating left margin causes columns in this section to resize. Since the margin affects column width, it is applied before column properties.

When updating this property, setting a concrete value is required. Unsetting this property results in a 400 bad request error.

page_number_start: Option<i32>

The page number from which to start counting the number of pages for this section. If unset, page numbering continues from the previous section. If the value is unset in the first SectionBreak, refer to DocumentStyle's page_number_start.

When updating this property, setting a concrete value is required. Unsetting this property results in a 400 bad request error.

margin_top: Option<Dimension>

The top page margin of the section. If unset, uses margin_top from DocumentStyle.

When updating this property, setting a concrete value is required. Unsetting this property results in a 400 bad request error.

section_type: Option<String>

Output only. The type of section.

Trait Implementations

impl Clone for SectionStyle[src]

impl Debug for SectionStyle[src]

impl Default for SectionStyle[src]

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

impl Part for SectionStyle[src]

impl Serialize for SectionStyle[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, 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.

impl<T> Typeable for T where
    T: Any