use std::ops::Deref; use ecstore::store::ECStore; #[derive(Clone)] pub struct ObjectApi(Option); impl Deref for ObjectApi { type Target = Option; fn deref(&self) -> &Self::Target { &self.0 } } impl ObjectApi { pub fn new(t: Option) -> Self { Self(t) } }