figma_api/models/base_noise_effect.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/// BaseNoiseEffect : A noise effect
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct BaseNoiseEffect {
17 /// Blend mode of the noise effect
18 #[serde(rename = "blendMode")]
19 pub blend_mode: models::BlendMode,
20 /// The size of the noise effect
21 #[serde(rename = "noiseSize")]
22 pub noise_size: f64,
23 /// The density of the noise effect
24 #[serde(rename = "density")]
25 pub density: f64,
26}
27
28impl BaseNoiseEffect {
29 /// A noise effect
30 pub fn new(blend_mode: models::BlendMode, noise_size: f64, density: f64) -> BaseNoiseEffect {
31 BaseNoiseEffect {
32 blend_mode,
33 noise_size,
34 density,
35 }
36 }
37}
38