use std::{any::TypeId, sync::Arc}; use super::Value; #[derive(Clone)] pub struct Field { pub name: String, pub type_id: TypeId, pub(crate) getter: Option Value>>, pub(crate) setter: Option>, } impl Field { pub fn getter_fn(&self) -> Option Value>> { self.getter.clone() } pub fn setter_fn(&self) -> Option> { self.setter.clone() } }