windmill_api/models/
flow_note_size.rs

1/*
2 * Windmill API
3 *
4 * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
5 *
6 * The version of the OpenAPI document: 1.581.0
7 * Contact: contact@windmill.dev
8 * Generated by: https://openapi-generator.tech
9 */
10
11use crate::models;
12use serde::{Deserialize, Serialize};
13
14/// FlowNoteSize : Size of the note in the flow editor
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct FlowNoteSize {
17    /// Width in pixels
18    #[serde(rename = "width")]
19    pub width: f64,
20    /// Height in pixels
21    #[serde(rename = "height")]
22    pub height: f64,
23}
24
25impl FlowNoteSize {
26    /// Size of the note in the flow editor
27    pub fn new(width: f64, height: f64) -> FlowNoteSize {
28        FlowNoteSize {
29            width,
30            height,
31        }
32    }
33}
34