Skip to main content

Crate sova_storage

Crate sova_storage 

Source
Expand description

Object storage for Sova — local disk, memory, S3/R2/MinIO, GCS, Azure.

Upload pipeline:

ⓘ
file.validate(&UploadRules::new().max_bytes(2_000_000).extensions(["png", "jpg"]))?;
let stored = req.storage().store(&file, "avatars").await?;
// stored.key / stored.url

Structs§

AppStorage
App-state handle: backend + optional public URL prefix.
LocalStore
MemoryStore
PutOpts
Storage
Plugin that installs AppStorage.
StoredFile
Result of AppStorage::store / AppStorage::store_as.

Enums§

StorageError

Traits§

BlobStore
Byte-oriented object store. Custom backends: impl BlobStore + Storage::new.
StorageExt
Convenient req.storage().

Functions§

normalize_key
Normalize object keys: trim leading /, reject ...
normalize_prefix
Normalize a list prefix: empty allowed (store root); reject ...

Type Aliases§

BoxFuture