windmill-api 1.684.1

No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
Documentation
/*
 * Windmill API
 *
 * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
 *
 * The version of the OpenAPI document: 1.684.1
 * Contact: contact@windmill.dev
 * Generated by: https://openapi-generator.tech
 */

use crate::models;
use serde::{Deserialize, Serialize};

/// FlowNotePosition : Position of the note in the flow editor
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct FlowNotePosition {
    /// X coordinate
    #[serde(rename = "x")]
    pub x: f64,
    /// Y coordinate
    #[serde(rename = "y")]
    pub y: f64,
}

impl FlowNotePosition {
    /// Position of the note in the flow editor
    pub fn new(x: f64, y: f64) -> FlowNotePosition {
        FlowNotePosition {
            x,
            y,
        }
    }
}