figma_api/models/
documentation_link.rs

1/*
2 * Figma API
3 *
4 * This is the OpenAPI specification for the [Figma REST API](https://www.figma.com/developers/api).  Note: we are releasing the OpenAPI specification as a beta given the large surface area and complexity of the REST API. If you notice any inaccuracies with the specification, please [file an issue](https://github.com/figma/rest-api-spec/issues).
5 *
6 * The version of the OpenAPI document: 0.31.0
7 * Contact: support@figma.com
8 * Generated by: https://openapi-generator.tech
9 */
10
11use crate::models;
12use serde::{Deserialize, Serialize};
13
14/// DocumentationLink : Represents a link to documentation for a component or component set.
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct DocumentationLink {
17    /// Should be a valid URI (e.g. https://www.figma.com).
18    #[serde(rename = "uri")]
19    pub uri: String,
20}
21
22impl DocumentationLink {
23    /// Represents a link to documentation for a component or component set.
24    pub fn new(uri: String) -> DocumentationLink {
25        DocumentationLink {
26            uri,
27        }
28    }
29}
30