pub struct Cell {
    pub column_id: u64,
    pub column_type: Option<String>,
    pub hyperlink: Option<Hyperlink>,
    pub value: Option<CellValue>,
    pub display_value: Option<String>,
    pub object_value: Option<Value>,
    pub format: Option<String>,
    pub formula: Option<String>,
}

Fields

column_id: u64column_type: Option<String>hyperlink: Option<Hyperlink>

Represents a hyperlink to a dashboard, report, sheet, or URL.

In the most common scenario, the hyperlink is a URL link, and the url property contains the URL value. This can more easily be retrieved via the Cell.link_url method.

More info

  • https://smartsheet-platform.github.io/api-docs/#hyperlinks
  • https://smartsheet-platform.github.io/api-docs/#hyperlink-object
value: Option<CellValue>

Cell.value represents a cell’s raw value and can be one of the following primitive JSON types: string, number, or Boolean, depending on the column type. An empty cell returns no value.

More info

  • https://smartsheet-platform.github.io/api-docs/#cell-reference
display_value: Option<String>

Cell.displayValue is always a string and is only returned for certain column types. It represents the formatted value as it should be displayed to an end-user.

Examples

If a TEXT_NUMBER column is formatted as a US Dollar currency, its value may be a number like 1234.5678, but its displayValue is “$1,234.57”.

More info

  • https://smartsheet-platform.github.io/api-docs/#cell-reference
object_value: Option<Value>

Cell.objectValue is an object representation of a cell’s value and is currently used for adding or updating predecessor cell values, or for multi-contact details, such as email addresses.

More info

  • https://smartsheet-platform.github.io/api-docs/#cell-reference
format: Option<String>formula: Option<String>

Implementations

Retrieve the Cell value as a string

Retrieve the Cell value as a string, but prefer to use an Option implementation instead, which can be unwrapped.

Retrieve the Cell value as a Number

Retrieve the Cell value as a boolean

Retrieve the Cell value as an unsigned integer

Retrieve the Cell value as a float

Retrieve the Cell display_value as a string

Retrieve the Cell display_value as a string, but prefer to use an Option implementation instead, which can be unwrapped.

Retrieve the Cell hyperlink URL as a string

Retrieve the Cell hyperlink URL as a string, but prefer to use an Option implementation instead, which can be unwrapped.

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

Deserialize this value from the given Serde deserializer. Read more

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

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)

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.

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

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