pub struct ApiLink {
pub browser_link: Option<String>,
pub href: String,
pub resource: ApiLinkResolvedResource,
pub type_: ApiLinkType,
}
Expand description
Info about a resolved link to an API resource.
JSON schema
{
"description": "Info about a resolved link to an API resource.",
"type": "object",
"required": [
"href",
"resource",
"type"
],
"properties": {
"browserLink": {
"description": "Canonical browser-friendly link to the resolved
resource.",
"examples": [
"https://coda.io/d/_dAbCDeFGH/Launch-Status_sumnO"
],
"type": "string",
"format": "url"
},
"href": {
"description": "Self link to this query.",
"examples": [
"https://coda.io/apis/v1/resolveBrowserLink?url=https%3A%2F%2Fcoda.io%2Fd%2F_dAbCDeFGH%2FLaunch-Status_sumnO"
],
"type": "string",
"format": "url"
},
"resource": {
"$ref": "#/components/schemas/ApiLinkResolvedResource"
},
"type": {
"description": "The type of this resource.",
"type": "string",
"enum": [
"apiLink"
],
"x-tsType": "Type.ApiLink"
}
},
"additionalProperties": false,
"x-schema-name": "ApiLink"
}
Fields§
§browser_link: Option<String>
Canonical browser-friendly link to the resolved resource.
href: String
Self link to this query.
resource: ApiLinkResolvedResource
§type_: ApiLinkType
The type of this resource.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for ApiLink
impl<'de> Deserialize<'de> for ApiLink
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 ApiLink
impl RefUnwindSafe for ApiLink
impl Send for ApiLink
impl Sync for ApiLink
impl Unpin for ApiLink
impl UnwindSafe for ApiLink
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