mirror of
https://github.com/rustfs/rustfs.git
synced 2026-07-27 16:48:58 +00:00
8de9b72c49
Signed-off-by: bestgopher <84328409@qq.com>
21 lines
322 B
Rust
21 lines
322 B
Rust
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)
|
|
}
|
|
}
|