You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

14 lines
385 B
Rust

#[derive(Deserialize, Debug, Clone)]
#[serde(rename_all(deserialize = "camelCase", serialize = "snake_case"))]
pub struct Entity {
pub id: u32,
pub internal_id: Option<u32>,
pub display_name: String,
pub name: String,
#[serde(alias = "type")]
pub entity_type: String,
pub width: Option<f32>,
pub height: Option<f32>,
pub category: Option<String>,
}