1 2 3 4 5 6 7 8 9 10 11 12 13 14
use super::*;
#[derive(Default)]
pub struct Field {
pub name: String,
pub ty: Type,
pub constant: Option<Value>,
}
impl Field {
pub fn new(name: &str) -> Self {
Self { name: name.to_string(), ..Default::default() }
}
}