Struct google_docs1::api::SectionStyle
source · pub struct SectionStyle {Show 19 fields
pub column_properties: Option<Vec<SectionColumnProperties>>,
pub column_separator_style: Option<String>,
pub content_direction: Option<String>,
pub default_footer_id: Option<String>,
pub default_header_id: Option<String>,
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 section_type: Option<String>,
pub use_first_page_header_footer: Option<bool>,
}
Expand description
The styling that applies to a section.
This type is not used in any activity, and only used as part of another schema.
Fields§
§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 3 columns. When updating this property, setting a concrete value is required. Unsetting this property will result in a 400 bad request error.
column_separator_style: Option<String>
The style of column separators. This style can be set even when there’s 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.
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.
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.
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.
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 use 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.
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 use 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.
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’s 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.
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’s 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.
flip_page_orientation: Option<bool>
Optional. Indicates whether to flip the dimensions of DocumentStyle’s page_size for this section, which allows changing the page orientation between portrait and landscape. If unset, the value inherits from DocumentStyle’s flip_page_orientation. When updating this property, setting a concrete value is required. Unsetting this property results in a 400 bad request error.
margin_bottom: Option<Dimension>
The bottom page margin of the section. If unset, the value defaults to margin_bottom from DocumentStyle. When updating this property, setting a concrete value is required. Unsetting this property results in a 400 bad request error.
The footer margin of the section. If unset, the value defaults to 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.
margin_header: Option<Dimension>
The header margin of the section. If unset, the value defaults to 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_left: Option<Dimension>
The left page margin of the section. If unset, the value defaults to margin_left from DocumentStyle. Updating the left margin causes columns in this section to resize. Since the margin affects column width, it’s applied before column properties. 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, the value defaults to margin_right from DocumentStyle. Updating the right margin causes columns in this section to resize. Since the margin affects column width, it’s applied before column properties. 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, the value defaults to margin_top from DocumentStyle. 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.
section_type: Option<String>
Output only. The type of section.
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.
Trait Implementations§
source§impl Clone for SectionStyle
impl Clone for SectionStyle
source§fn clone(&self) -> SectionStyle
fn clone(&self) -> SectionStyle
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more