Expand description
Pluggable storage backends for persisted file uploads.
Use storage() to construct the appropriate backend from
UploadConfig, or instantiate a concrete backend
directly:
local::LocalStorage— writes files to the local filesystem. Requires thelocalfeature (enabled by default).opendal::OpendalStorage— delegates to any Apache OpenDAL operator, including S3-compatible services. Requires theopendalfeature.
Modules§
Structs§
- Stored
File - Metadata returned after a file has been successfully stored.
Traits§
- File
Storage - Trait for persisting uploaded files to a storage backend.
- File
Storage Dyn - Object-safe companion to
FileStoragefor use withArc<dyn FileStorageDyn>. - File
Storage Send - Trait for persisting uploaded files to a storage backend.
Functions§
- storage
- Construct a
FileStorageDynbackend fromUploadConfig.