figma_api/models/
layout_grid_bound_variables.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/// LayoutGridBoundVariables : The variables bound to a particular field on this layout grid
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct LayoutGridBoundVariables {
17    #[serde(rename = "gutterSize", skip_serializing_if = "Option::is_none")]
18    pub gutter_size: Option<Box<models::VariableAlias>>,
19    #[serde(rename = "numSections", skip_serializing_if = "Option::is_none")]
20    pub num_sections: Option<Box<models::VariableAlias>>,
21    #[serde(rename = "sectionSize", skip_serializing_if = "Option::is_none")]
22    pub section_size: Option<Box<models::VariableAlias>>,
23    #[serde(rename = "offset", skip_serializing_if = "Option::is_none")]
24    pub offset: Option<Box<models::VariableAlias>>,
25}
26
27impl LayoutGridBoundVariables {
28    /// The variables bound to a particular field on this layout grid
29    pub fn new() -> LayoutGridBoundVariables {
30        LayoutGridBoundVariables {
31            gutter_size: None,
32            num_sections: None,
33            section_size: None,
34            offset: None,
35        }
36    }
37}
38