Preparando terreno
This commit is contained in:
16
src/events/ball_hit/ball.rs
Normal file
16
src/events/ball_hit/ball.rs
Normal file
@@ -0,0 +1,16 @@
|
||||
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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user