Skip to main content

Module storage

Module storage 

Source
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 the local feature (enabled by default).
  • opendal::OpendalStorage — delegates to any Apache OpenDAL operator, including S3-compatible services. Requires the opendal feature.

Modules§

local

Structs§

StoredFile
Metadata returned after a file has been successfully stored.

Traits§

FileStorage
Trait for persisting uploaded files to a storage backend.
FileStorageDyn
Object-safe companion to FileStorage for use with Arc<dyn FileStorageDyn>.
FileStorageSend
Trait for persisting uploaded files to a storage backend.

Functions§

storage
Construct a FileStorageDyn backend from UploadConfig.