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.

§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.

§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.

§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 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.

§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’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.

§margin_footer: Option<Dimension>

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.

§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.

Trait Implementations§

source§

impl Clone for SectionStyle

source§

fn clone(&self) -> SectionStyle

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for SectionStyle

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Default for SectionStyle

source§

fn default() -> SectionStyle

Returns the “default value” for a type. Read more
source§

impl<'de> Deserialize<'de> for SectionStyle

source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
source§

impl Serialize for SectionStyle

source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
source§

impl Part for SectionStyle

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> ToOwned for T
where T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

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

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more
source§

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