artifacts/models/
destination_schema.rs

1use crate::models;
2use serde::{Deserialize, Serialize};
3
4#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
5#[cfg_attr(feature = "specta", derive(specta::Type))]
6pub struct DestinationSchema {
7    /// The x coordinate of the destination.
8    #[serde(rename = "x")]
9    pub x: i32,
10    /// The y coordinate of the destination.
11    #[serde(rename = "y")]
12    pub y: i32,
13}
14
15impl DestinationSchema {
16    pub fn new(x: i32, y: i32) -> DestinationSchema {
17        DestinationSchema { x, y }
18    }
19}