refactor: move api crate to api dir

Signed-off-by: bestgopher <84328409@qq.com>
This commit is contained in:
bestgopher
2024-10-16 10:31:02 +08:00
parent a96ac8c024
commit 8de9b72c49
9 changed files with 3 additions and 3 deletions
+20
View File
@@ -0,0 +1,20 @@
use std::ops::Deref;
use ecstore::store::ECStore;
#[derive(Clone)]
pub struct ObjectApi(Option<ECStore>);
impl Deref for ObjectApi {
type Target = Option<ECStore>;
fn deref(&self) -> &Self::Target {
&self.0
}
}
impl ObjectApi {
pub fn new(t: Option<ECStore>) -> Self {
Self(t)
}
}