pub struct ControlReference {
pub href: String,
pub id: String,
pub name: String,
pub parent: Option<PageReference>,
pub type_: ControlReferenceType,
}
Expand description
Reference to a control.
JSON schema
{
"description": "Reference to a control.",
"type": "object",
"required": [
"href",
"id",
"name",
"type"
],
"properties": {
"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"
}
},
"additionalProperties": false,
"x-schema-name": "ControlReference"
}
Fields§
§href: String
API link to the control.
id: String
ID of the control.
name: String
Name of the control.
parent: Option<PageReference>
§type_: ControlReferenceType
The type of this resource.
Trait Implementations§
Source§impl Clone for ControlReference
impl Clone for ControlReference
Source§fn clone(&self) -> ControlReference
fn clone(&self) -> ControlReference
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 ControlReference
impl Debug for ControlReference
Source§impl<'de> Deserialize<'de> for ControlReference
impl<'de> Deserialize<'de> for ControlReference
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<&ControlReference> for ControlReference
impl From<&ControlReference> for ControlReference
Source§fn from(value: &ControlReference) -> Self
fn from(value: &ControlReference) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for ControlReference
impl RefUnwindSafe for ControlReference
impl Send for ControlReference
impl Sync for ControlReference
impl Unpin for ControlReference
impl UnwindSafe for ControlReference
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