figma_api/models/
image_filters.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/// ImageFilters : Image filters to apply to the node.
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct ImageFilters {
17    #[serde(rename = "exposure", skip_serializing_if = "Option::is_none")]
18    pub exposure: Option<f64>,
19    #[serde(rename = "contrast", skip_serializing_if = "Option::is_none")]
20    pub contrast: Option<f64>,
21    #[serde(rename = "saturation", skip_serializing_if = "Option::is_none")]
22    pub saturation: Option<f64>,
23    #[serde(rename = "temperature", skip_serializing_if = "Option::is_none")]
24    pub temperature: Option<f64>,
25    #[serde(rename = "tint", skip_serializing_if = "Option::is_none")]
26    pub tint: Option<f64>,
27    #[serde(rename = "highlights", skip_serializing_if = "Option::is_none")]
28    pub highlights: Option<f64>,
29    #[serde(rename = "shadows", skip_serializing_if = "Option::is_none")]
30    pub shadows: Option<f64>,
31}
32
33impl ImageFilters {
34    /// Image filters to apply to the node.
35    pub fn new() -> ImageFilters {
36        ImageFilters {
37            exposure: None,
38            contrast: None,
39            saturation: None,
40            temperature: None,
41            tint: None,
42            highlights: None,
43            shadows: None,
44        }
45    }
46}
47