figma_api/models/
transition_source_trait.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#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
15pub struct TransitionSourceTrait {
16    /// Node ID of node to transition to in prototyping
17    #[serde(rename = "transitionNodeID", skip_serializing_if = "Option::is_none")]
18    pub transition_node_id: Option<String>,
19    /// The duration of the prototyping transition on this node (in milliseconds). This will override the default transition duration on the prototype, for this node.
20    #[serde(rename = "transitionDuration", skip_serializing_if = "Option::is_none")]
21    pub transition_duration: Option<f64>,
22    /// The easing curve used in the prototyping transition on this node.
23    #[serde(rename = "transitionEasing", skip_serializing_if = "Option::is_none")]
24    pub transition_easing: Option<models::EasingType>,
25}
26
27impl TransitionSourceTrait {
28    pub fn new() -> TransitionSourceTrait {
29        TransitionSourceTrait {
30            transition_node_id: None,
31            transition_duration: None,
32            transition_easing: None,
33        }
34    }
35}
36