mirror of
https://github.com/rojo-rbx/rojo.git
synced 2026-04-21 05:06:29 +00:00
19 lines
416 B
Rust
19 lines
416 B
Rust
use std::collections::HashMap;
|
|
|
|
#[derive(Debug, Serialize, Deserialize)]
|
|
#[serde(rename_all = "camelCase")]
|
|
pub struct RbxItem {
|
|
pub name: String,
|
|
pub class_name: String,
|
|
pub children: Vec<RbxItem>,
|
|
pub properties: HashMap<String, RbxValue>,
|
|
}
|
|
|
|
#[derive(Debug, Serialize, Deserialize)]
|
|
#[serde(rename_all = "camelCase", tag = "type")]
|
|
pub enum RbxValue {
|
|
String {
|
|
value: String,
|
|
},
|
|
}
|