Struct spreadsheet_ods::CellContent[][src]

pub struct CellContent {
    pub value: Value,
    pub style: Option<String>,
    pub formula: Option<String>,
    pub validation_name: Option<String>,
    pub span: CellSpan,
}
Expand description

A copy of the relevant data for a spreadsheet cell.

Fields

value: Value

Cell value.

style: Option<String>

Cell stylename.

formula: Option<String>

Cell formula.

validation_name: Option<String>

Reference to a validation rule.

span: CellSpan

Cellspan.

Implementations

Empty.

Returns the value.

Sets the value.

Returns the formula.

Sets the formula.

Resets the formula.

Returns the cell style.

Sets the cell style.

Removes the style.

Returns the validation name.

Sets the validation name.

No validation.

Sets the row span of this cell. Cells below with values will be lost when writing.

Returns the row span.

Sets the column span of this cell. Cells to the right with values will be lost when writing.

Returns the col span.

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

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.

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.