Files
rustfs/api/admin/src/object_api.rs
T
bestgopher 8de9b72c49 refactor: move api crate to api dir
Signed-off-by: bestgopher <84328409@qq.com>
2024-10-16 10:31:05 +08:00

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)
}
}