Skip to main content

Crate sofie_storage

Crate sofie_storage 

Source

Structs§

Bytes
A cheaply cloneable and sliceable chunk of contiguous memory.
Content
ContentType
DownloadLink
Local
MadeVariant
Put
Resized
S3
S3Settings
endpoint defaults to AWS’s for the region; another S3-compatible service names its own, usually with path_style. On AWS the credentials need s3:ListBucket besides the object permissions: without it a missing file answers 403, read as a failure rather than as absent.
Served
Storage
StorageKey
128 random bits as lowercase hex: never a name a caller chose, so never a path that leaves its directory.
Variant

Enums§

Disposition

Constants§

MAX_ORIGINAL_BYTES
Read whole into memory for the resizer, so larger originals are refused.
SERVED_PATH
Where sofie-http serves the links a store signs for the app itself to answer, before routing, so no app route can take it.

Traits§

Reader
Resizer
The app’s: the framework decodes no images, so it brings no image library.
Store
Writer
Nothing is kept under its key until finish succeeds.

Functions§

content_disposition
RFC 6266: an ASCII filename for old clients and the UTF-8 filename* (RFC 5987) beside it. Quotes, backslashes and characters that mislead a reader are dropped from both.

Type Aliases§

Pending