pub struct ColumnDetail {
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 parent: TableReference,
pub type_: ColumnDetailType,
}
Expand description
Info about a column.
JSON schema
{
"description": "Info about a column.",
"type": "object",
"required": [
"format",
"href",
"id",
"name",
"parent",
"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"
},
"parent": {
"$ref": "#/components/schemas/TableReference"
},
"type": {
"description": "The type of this resource.",
"type": "string",
"enum": [
"column"
],
"x-tsType": "Type.Column"
}
},
"additionalProperties": false,
"x-schema-name": "ColumnDetail"
}
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.
parent: TableReference
§type_: ColumnDetailType
The type of this resource.
Trait Implementations§
Source§impl Clone for ColumnDetail
impl Clone for ColumnDetail
Source§fn clone(&self) -> ColumnDetail
fn clone(&self) -> ColumnDetail
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for ColumnDetail
impl Debug for ColumnDetail
Source§impl<'de> Deserialize<'de> for ColumnDetail
impl<'de> Deserialize<'de> for ColumnDetail
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
Source§impl From<&ColumnDetail> for ColumnDetail
impl From<&ColumnDetail> for ColumnDetail
Source§fn from(value: &ColumnDetail) -> Self
fn from(value: &ColumnDetail) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for ColumnDetail
impl RefUnwindSafe for ColumnDetail
impl Send for ColumnDetail
impl Sync for ColumnDetail
impl Unpin for ColumnDetail
impl UnwindSafe for ColumnDetail
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