mirror of
https://github.com/rustfs/rustfs.git
synced 2026-08-06 05:17:42 +00:00
refactor: move api crate to api dir
Signed-off-by: bestgopher <84328409@qq.com>
This commit is contained in:
@@ -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)
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user