authentik_rust/models/
coordinate.rs

1/*
2 * authentik
3 *
4 * Making authentication simple.
5 *
6 * The version of the OpenAPI document: 2024.2.1
7 * Contact: hello@goauthentik.io
8 * Generated by: https://openapi-generator.tech
9 */
10
11use crate::models;
12
13/// Coordinate : Coordinates for diagrams
14#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
15pub struct Coordinate {
16    #[serde(rename = "x_cord")]
17    pub x_cord: i32,
18    #[serde(rename = "y_cord")]
19    pub y_cord: i32,
20}
21
22impl Coordinate {
23    /// Coordinates for diagrams
24    pub fn new(x_cord: i32, y_cord: i32) -> Coordinate {
25        Coordinate {
26            x_cord,
27            y_cord,
28        }
29    }
30}
31