figma_api/models/
flow_starting_point.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/// FlowStartingPoint : A flow starting point used when launching a prototype to enter Presentation view.
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct FlowStartingPoint {
17    /// Unique identifier specifying the frame.
18    #[serde(rename = "nodeId")]
19    pub node_id: String,
20    /// Name of flow.
21    #[serde(rename = "name")]
22    pub name: String,
23}
24
25impl FlowStartingPoint {
26    /// A flow starting point used when launching a prototype to enter Presentation view.
27    pub fn new(node_id: String, name: String) -> FlowStartingPoint {
28        FlowStartingPoint {
29            node_id,
30            name,
31        }
32    }
33}
34