figma_api/models/
base_shadow_effect_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/// BaseShadowEffectBoundVariables : The variables bound to a particular field on this shadow effect
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct BaseShadowEffectBoundVariables {
17    #[serde(rename = "radius", skip_serializing_if = "Option::is_none")]
18    pub radius: Option<Box<models::VariableAlias>>,
19    #[serde(rename = "spread", skip_serializing_if = "Option::is_none")]
20    pub spread: Option<Box<models::VariableAlias>>,
21    #[serde(rename = "color", skip_serializing_if = "Option::is_none")]
22    pub color: Option<Box<models::VariableAlias>>,
23    #[serde(rename = "offsetX", skip_serializing_if = "Option::is_none")]
24    pub offset_x: Option<Box<models::VariableAlias>>,
25    #[serde(rename = "offsetY", skip_serializing_if = "Option::is_none")]
26    pub offset_y: Option<Box<models::VariableAlias>>,
27}
28
29impl BaseShadowEffectBoundVariables {
30    /// The variables bound to a particular field on this shadow effect
31    pub fn new() -> BaseShadowEffectBoundVariables {
32        BaseShadowEffectBoundVariables {
33            radius: None,
34            spread: None,
35            color: None,
36            offset_x: None,
37            offset_y: None,
38        }
39    }
40}
41