mod generated;
pub enum Value {
Single(String),
Multiple(Vec<String>)
}
impl Value {
pub fn from_vec(v: Vec<String>) -> Self {
Value::Multiple(v)
}
pub fn from_str(s: &str) -> Self {
Value::Single(s.to_string())
}
pub fn from_string(s: &String) -> Self {
Value::Single(s.clone())
}
}
struct Property {
id: String,
value: Value
}
impl Property {
pub fn new(_id: String, _value: Value) -> Self {
Property { id: _id, value: _value }
}
}
struct Rule {
rule_id: String,
}
struct Selector(Vec<Rule>);