pub struct Control {
pub control_type: ControlTypeEnum,
pub href: String,
pub id: String,
pub name: String,
pub parent: Option<PageReference>,
pub type_: ControlType,
pub value: Value,
}Expand description
Details about a control.
JSON schema
{
"description": "Details about a control.",
"type": "object",
"required": [
"controlType",
"href",
"id",
"name",
"type",
"value"
],
"properties": {
"controlType": {
"$ref": "#/components/schemas/ControlTypeEnum"
},
"href": {
"description": "API link to the control.",
"examples": [
"https://coda.io/apis/v1/docs/AbCDeFGH/controls/ctrl-cDefGhij"
],
"type": "string",
"format": "url"
},
"id": {
"description": "ID of the control.",
"examples": [
"ctrl-cDefGhij"
],
"type": "string"
},
"name": {
"description": "Name of the control.",
"examples": [
"Cost"
],
"type": "string"
},
"parent": {
"$ref": "#/components/schemas/PageReference"
},
"type": {
"description": "The type of this resource.",
"type": "string",
"enum": [
"control"
],
"x-tsType": "Type.Control"
},
"value": {
"$ref": "#/components/schemas/Value"
}
},
"additionalProperties": false,
"x-schema-name": "Control"
}Fields§
§control_type: ControlTypeEnum§href: StringAPI link to the control.
id: StringID of the control.
name: StringName of the control.
parent: Option<PageReference>§type_: ControlTypeThe type of this resource.
value: ValueTrait Implementations§
Source§impl<'de> Deserialize<'de> for Control
impl<'de> Deserialize<'de> for Control
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 Control
impl RefUnwindSafe for Control
impl Send for Control
impl Sync for Control
impl Unpin for Control
impl UnwindSafe for Control
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