pub struct DocumentStyle {Show 20 fields
pub background: Option<Background>,
pub default_footer_id: Option<String>,
pub default_header_id: Option<String>,
pub document_format: Option<DocumentFormat>,
pub even_page_footer_id: Option<String>,
pub even_page_header_id: Option<String>,
pub first_page_footer_id: Option<String>,
pub first_page_header_id: Option<String>,
pub flip_page_orientation: Option<bool>,
pub margin_bottom: Option<Dimension>,
pub margin_footer: Option<Dimension>,
pub margin_header: Option<Dimension>,
pub margin_left: Option<Dimension>,
pub margin_right: Option<Dimension>,
pub margin_top: Option<Dimension>,
pub page_number_start: Option<i32>,
pub page_size: Option<Size>,
pub use_custom_header_footer_margins: Option<bool>,
pub use_even_page_header_footer: Option<bool>,
pub use_first_page_header_footer: Option<bool>,
}Expand description
The style of the document.
This type is not used in any activity, and only used as part of another schema.
Fields§
§background: Option<Background>The background of the document. Documents cannot have a transparent background color.
The ID of the default footer. If not set, there’s no default footer. If DocumentMode is PAGELESS, this property will not be rendered. This property is read-only.
default_header_id: Option<String>The ID of the default header. If not set, there’s no default header. If DocumentMode is PAGELESS, this property will not be rendered. This property is read-only.
document_format: Option<DocumentFormat>Specifies document-level format settings, such as the document mode (pages vs pageless).
The ID of the footer used only for even pages. The value of use_even_page_header_footer determines whether to use the default_footer_id or this value for the footer on even pages. If not set, there’s no even page footer. If DocumentMode is PAGELESS, this property will not be rendered. This property is read-only.
even_page_header_id: Option<String>The ID of the header used only for even pages. The value of use_even_page_header_footer determines whether to use the default_header_id or this value for the header on even pages. If not set, there’s no even page header. If DocumentMode is PAGELESS, this property will not be rendered. This property is read-only.
The ID of the footer used only for the first page. If not set then a unique footer for the first page does not exist. The value of use_first_page_header_footer determines whether to use the default_footer_id or this value for the footer on the first page. If not set, there’s no first page footer. If DocumentMode is PAGELESS, this property will not be rendered. This property is read-only.
first_page_header_id: Option<String>The ID of the header used only for the first page. If not set then a unique header for the first page does not exist. The value of use_first_page_header_footer determines whether to use the default_header_id or this value for the header on the first page. If not set, there’s no first page header. If DocumentMode is PAGELESS, this property will not be rendered. This property is read-only.
flip_page_orientation: Option<bool>Optional. Indicates whether to flip the dimensions of the page_size, which allows changing the page orientation between portrait and landscape. If DocumentMode is PAGELESS, this property will not be rendered.
margin_bottom: Option<Dimension>The bottom page margin. Updating the bottom page margin on the document style clears the bottom page margin on all section styles. If DocumentMode is PAGELESS, this property will not be rendered.
The amount of space between the bottom of the page and the contents of the footer. If DocumentMode is PAGELESS, this property will not be rendered.
margin_header: Option<Dimension>The amount of space between the top of the page and the contents of the header. If DocumentMode is PAGELESS, this property will not be rendered.
margin_left: Option<Dimension>The left page margin. Updating the left page margin on the document style clears the left page margin on all section styles. It may also cause columns to resize in all sections. If DocumentMode is PAGELESS, this property will not be rendered.
margin_right: Option<Dimension>The right page margin. Updating the right page margin on the document style clears the right page margin on all section styles. It may also cause columns to resize in all sections. If DocumentMode is PAGELESS, this property will not be rendered.
margin_top: Option<Dimension>The top page margin. Updating the top page margin on the document style clears the top page margin on all section styles. If DocumentMode is PAGELESS, this property will not be rendered.
page_number_start: Option<i32>The page number from which to start counting the number of pages. If DocumentMode is PAGELESS, this property will not be rendered.
page_size: Option<Size>The size of a page in the document. If DocumentMode is PAGELESS, this property will not be rendered.
Indicates whether DocumentStyle margin_header, SectionStyle margin_header and DocumentStyle margin_footer, SectionStyle margin_footer are respected. When false, the default values in the Docs editor for header and footer margin is used. If DocumentMode is PAGELESS, this property will not be rendered. This property is read-only.
Indicates whether to use the even page header / footer IDs for the even pages. If DocumentMode is PAGELESS, this property will not be rendered.
Indicates whether to use the first page header / footer IDs for the first page. If DocumentMode is PAGELESS, this property will not be rendered.
Trait Implementations§
Source§impl Clone for DocumentStyle
impl Clone for DocumentStyle
Source§fn clone(&self) -> DocumentStyle
fn clone(&self) -> DocumentStyle
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more