Struct google_sheets4::api::CellFormat[][src]

pub struct CellFormat {
    pub background_color: Option<Color>,
    pub background_color_style: Option<ColorStyle>,
    pub borders: Option<Borders>,
    pub horizontal_alignment: Option<String>,
    pub hyperlink_display_type: Option<String>,
    pub number_format: Option<NumberFormat>,
    pub padding: Option<Padding>,
    pub text_direction: Option<String>,
    pub text_format: Option<TextFormat>,
    pub text_rotation: Option<TextRotation>,
    pub vertical_alignment: Option<String>,
    pub wrap_strategy: Option<String>,
}
Expand description

The format of a cell.

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

Fields

background_color: Option<Color>

The background color of the cell.

background_color_style: Option<ColorStyle>

The background color of the cell. If background_color is also set, this field takes precedence.

borders: Option<Borders>

The borders of the cell.

horizontal_alignment: Option<String>

The horizontal alignment of the value in the cell.

hyperlink_display_type: Option<String>

How a hyperlink, if it exists, should be displayed in the cell.

number_format: Option<NumberFormat>

A format describing how number values should be represented to the user.

padding: Option<Padding>

The padding of the cell.

text_direction: Option<String>

The direction of the text in the cell.

text_format: Option<TextFormat>

The format of the text in the cell (unless overridden by a format run).

text_rotation: Option<TextRotation>

The rotation applied to text in a cell

vertical_alignment: Option<String>

The vertical alignment of the value in the cell.

wrap_strategy: Option<String>

The wrap strategy for the value in the cell.

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

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

Deserialize this value from the given Serde deserializer. Read more

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

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

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

Performs the conversion.

The resulting type after obtaining ownership.

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

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

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

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.