pub struct Column {
pub calculated: Option<bool>,
pub default_value: Option<String>,
pub display: Option<bool>,
pub format: ColumnFormat,
pub formula: Option<String>,
pub href: String,
pub id: String,
pub name: String,
pub type_: ColumnType,
}
Expand description
Info about a column.
JSON schema
{
"description": "Info about a column.",
"type": "object",
"required": [
"format",
"href",
"id",
"name",
"type"
],
"properties": {
"calculated": {
"description": "Whether the column has a formula set on it.",
"examples": [
true
],
"type": "boolean"
},
"defaultValue": {
"description": "Default value formula for the column.",
"examples": [
"Test"
],
"type": "string"
},
"display": {
"description": "Whether the column is the display column.",
"examples": [
true
],
"type": "boolean"
},
"format": {
"$ref": "#/components/schemas/ColumnFormat"
},
"formula": {
"description": "Formula on the column.",
"examples": [
"thisRow.Created()"
],
"type": "string"
},
"href": {
"description": "API link to the column.",
"examples": [
"https://coda.io/apis/v1/docs/AbCDeFGH/tables/grid-pqRst-U/columns/c-tuVwxYz"
],
"type": "string",
"format": "url"
},
"id": {
"description": "ID of the column.",
"examples": [
"c-tuVwxYz"
],
"type": "string"
},
"name": {
"description": "Name of the column.",
"examples": [
"Completed"
],
"type": "string"
},
"type": {
"description": "The type of this resource.",
"type": "string",
"enum": [
"column"
],
"x-tsType": "Type.Column"
}
},
"additionalProperties": false,
"x-schema-name": "Column"
}
Fields§
§calculated: Option<bool>
Whether the column has a formula set on it.
default_value: Option<String>
Default value formula for the column.
display: Option<bool>
Whether the column is the display column.
format: ColumnFormat
§formula: Option<String>
Formula on the column.
href: String
API link to the column.
id: String
ID of the column.
name: String
Name of the column.
type_: ColumnType
The type of this resource.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Column
impl<'de> Deserialize<'de> for Column
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for Column
impl RefUnwindSafe for Column
impl Send for Column
impl Sync for Column
impl Unpin for Column
impl UnwindSafe for Column
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more