pub struct Formula {
pub href: String,
pub id: String,
pub name: String,
pub parent: Option<PageReference>,
pub type_: FormulaType,
pub value: Value,
}
Expand description
Details about a formula.
JSON schema
{
"description": "Details about a formula.",
"type": "object",
"required": [
"href",
"id",
"name",
"type",
"value"
],
"properties": {
"href": {
"description": "API link to the formula.",
"examples": [
"https://coda.io/apis/v1/docs/AbCDeFGH/formulas/f-fgHijkLm"
],
"type": "string",
"format": "url"
},
"id": {
"description": "ID of the formula.",
"examples": [
"f-fgHijkLm"
],
"type": "string"
},
"name": {
"description": "Name of the formula.",
"examples": [
"Sum of expenses"
],
"type": "string"
},
"parent": {
"$ref": "#/components/schemas/PageReference"
},
"type": {
"description": "The type of this resource.",
"type": "string",
"enum": [
"formula"
],
"x-tsType": "Type.Formula"
},
"value": {
"$ref": "#/components/schemas/Value"
}
},
"additionalProperties": false,
"x-schema-name": "Formula"
}
Fields§
§href: String
API link to the formula.
id: String
ID of the formula.
name: String
Name of the formula.
parent: Option<PageReference>
§type_: FormulaType
The type of this resource.
value: Value
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Formula
impl<'de> Deserialize<'de> for Formula
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 Formula
impl RefUnwindSafe for Formula
impl Send for Formula
impl Sync for Formula
impl Unpin for Formula
impl UnwindSafe for Formula
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