windmill_api/models/flow_note_position.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/// FlowNotePosition : Position of the note in the flow editor
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct FlowNotePosition {
17 /// X coordinate
18 #[serde(rename = "x")]
19 pub x: f64,
20 /// Y coordinate
21 #[serde(rename = "y")]
22 pub y: f64,
23}
24
25impl FlowNotePosition {
26 /// Position of the note in the flow editor
27 pub fn new(x: f64, y: f64) -> FlowNotePosition {
28 FlowNotePosition {
29 x,
30 y,
31 }
32 }
33}
34