pub struct Extensions {
pub creation: bool,
pub creation_with_upload: bool,
pub creation_defer_length: bool,
pub expiration: bool,
pub expiration_ttl: Option<Duration>,
pub checksum: bool,
pub checksum_trailer: bool,
pub termination: bool,
pub concatenation: bool,
pub cleanup_concat_partials: bool,
}Expand description
Runtime flags controlling which tus protocol extensions are active.
These are runtime config, not Cargo features, so one compiled binary can serve any combination without recompilation.
Fields§
§creation: boolPOST to create a new upload (required by most clients).
creation_with_upload: boolPOST with body to combine creation and first chunk.
creation_defer_length: boolAllow Upload-Defer-Length: 1 to defer declaring size at creation.
expiration: boolAttach expiry timestamps to incomplete uploads.
expiration_ttl: Option<Duration>How long incomplete uploads live before expiry. Used when expiration = true.
checksum: boolValidate chunk integrity via Upload-Checksum header.
checksum_trailer: boolAccept checksum in HTTP trailers (requires HTTP/1.1 chunked or HTTP/2).
termination: boolAllow clients to DELETE uploads.
concatenation: boolAllow parallel partial uploads assembled into a final upload.
cleanup_concat_partials: boolAfter a successful final concatenation, delete partial upload resources.
Trait Implementations§
Source§impl Clone for Extensions
impl Clone for Extensions
Source§fn clone(&self) -> Extensions
fn clone(&self) -> Extensions
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more