Skip to main content

Crate rustrails_storage

Crate rustrails_storage 

Source
Expand description

File storage primitives inspired by Rails ActiveStorage.

Re-exports§

pub use analyzer::Analysis;
pub use analyzer::AnalyzerError;
pub use analyzer::AnalyzerRegistry;
pub use analyzer::BlobAnalyzer;
pub use analyzer::ImageAnalyzer;
pub use analyzer::MediaAnalyzer;
pub use analyzer::TextAnalyzer;
pub use attachment::Attachment;
pub use attachment::AttachmentError;
pub use attachment::HasManyAttached;
pub use attachment::HasOneAttached;
pub use attachment::ManyAttachments;
pub use attachment::OneAttachment;
pub use attachment::has_many_attached;
pub use attachment::has_one_attached;
pub use blob::Blob;
pub use blob::BlobError;
pub use direct_upload::DirectUploadError;
pub use direct_upload::DirectUploadManager;
pub use direct_upload::DirectUploadRequest;
pub use direct_upload::DirectUploadTokenClaims;
pub use preview::BlobPreviewer;
pub use preview::PdfPreviewer;
pub use preview::Preview;
pub use preview::PreviewError;
pub use preview::PreviewRegistry;
pub use preview::VideoPreviewer;
pub use service::DynStorageService;
pub use service::StorageError;
pub use service::StorageService;
pub use transformations::CropTransform;
pub use transformations::ImageTransformations;
pub use transformations::ResizeTransform;
pub use urls::SignedResource;
pub use urls::SignedUrlError;
pub use urls::SignedUrlGenerator;
pub use variant::Variant;
pub use variant::VariantError;

Modules§

analyzer
Pluggable blob analysis.
attachment
Attachment associations between records and blobs.
blob
Immutable file metadata records.
direct_upload
Direct upload flow helpers.
preview
Preview generation for non-image blobs.
service
Pluggable storage backends.
transformations
Typed image transformation configuration helpers.
urls
Signed URL generation for blobs and variants.
variant
Variant transformation requests and caching.