tus-protocol 0.1.0

Rust implementation of the TUS resumable upload protocol
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
//! TUS protocol extension types.
//!
//! This module provides types related to TUS protocol extensions.

/// Upload concatenation type.
///
/// Used by the Concatenation extension to identify partial uploads
/// and final uploads that combine multiple partials.
#[derive(Debug, Clone, PartialEq, Eq)]
#[non_exhaustive]
pub enum UploadConcat {
    /// This is a partial upload that will be concatenated later.
    Partial,
    /// This is a final upload that concatenates the given partial URLs.
    Final(Vec<String>),
}