Skip to main content

Module storage

Module storage 

Source

Structs§

AzureStorage
Azure Blob Storage backend via the object_store crate.
FileMetadata
Metadata associated with a stored file.
GcsStorage
Google Cloud Storage backend via the object_store crate.
LocalStorage
Local filesystem storage backend (default for development).
S3Storage
Amazon S3 storage backend via the object_store crate.
UploadHandler
Handles file uploads with validation, storage, and optional image processing.

Enums§

StorageBackend
Storage backend selected via SHAPERAIL_STORAGE_BACKEND env var.
StorageError
Errors that can occur during storage operations.

Functions§

parse_max_size
Parses a human-readable size string (e.g., “5mb”, “100kb”) into bytes.
validate_mime_type
Validates a MIME type against an allowed list of extensions/types.