Switch RbxValue to an enum

This commit is contained in:
Lucien Greathouse 2018-06-24 19:40:50 -07:00
parent be58598a3e
commit e1c420d37d
3 changed files with 17 additions and 11 deletions

View file

@ -3,8 +3,13 @@ use std::collections::HashMap;
use id::Id;
// TODO: Switch to enum to represent more value types
pub type RbxValue = String;
#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
#[serde(tag = "type")]
pub enum RbxValue {
String {
value: String,
}
}
#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
#[serde(rename_all = "camelCase")]