17 lines
338 B
Rust
17 lines
338 B
Rust
use serde::{Deserialize, Serialize};
|
|
|
|
use super::location::Location;
|
|
|
|
#[derive(Debug, Serialize, Deserialize, Clone)]
|
|
pub struct Ball {
|
|
#[serde(rename = "PreHitSpeed")]
|
|
pub pre_hit_speed: f64,
|
|
|
|
#[serde(rename = "PostHitSpeed")]
|
|
pub post_hit_speed: f64,
|
|
|
|
#[serde(rename = "Location")]
|
|
pub location: Location
|
|
}
|
|
|