wasmio 0.0.13

WasmIO a S3 Implementation on steroid
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
use crate::application::state::AppState;
use crate::domain::storage::{BackendDriver, BucketStorage};
use crate::infrastructure::storage::FSStorage;

#[derive(Debug, Clone)]
pub struct S3State<T: BackendDriver> {
    pub bucket_loader: BucketStorage<T>,
}

impl S3State<FSStorage> {
    pub fn from_state(app: &AppState) -> Self {
        Self {
            bucket_loader: BucketStorage::new(app.storage.clone()),
        }
    }
}