pub struct FileUploadPartEntity {Show 16 fields
pub upload_uri: Option<String>,
pub http_method: Option<String>,
pub headers: Option<HashMap<String, String>>,
pub parameters: Option<HashMap<String, String>>,
pub part_number: Option<i32>,
pub partsize: Option<i64>,
pub next_partsize: Option<i64>,
pub ref_: Option<String>,
pub action: Option<String>,
pub parallel_parts: Option<bool>,
pub retry_parts: Option<bool>,
pub available_parts: Option<i32>,
pub expires: Option<String>,
pub send: Option<HashMap<String, String>>,
pub path: Option<String>,
pub ask_about_overwrites: Option<bool>,
}
Expand description
Represents upload information for a file part
Returned by the begin_upload operation to provide URLs and parameters for uploading file data.
Fields§
§upload_uri: Option<String>
URI to upload this part to
http_method: Option<String>
HTTP method to use (usually “PUT”)
headers: Option<HashMap<String, String>>
Additional headers to include in upload request
parameters: Option<HashMap<String, String>>
Additional HTTP parameters to send
part_number: Option<i32>
Part number for multi-part uploads
partsize: Option<i64>
Size in bytes for this part
next_partsize: Option<i64>
Size in bytes for the next part
ref_: Option<String>
Reference identifier for this upload
action: Option<String>
Type of upload action
parallel_parts: Option<bool>
Whether multiple parts can be uploaded in parallel
retry_parts: Option<bool>
Whether parts can be retried
available_parts: Option<i32>
Number of parts in the upload
expires: Option<String>
When this upload URL expires
send: Option<HashMap<String, String>>
Content-Type and file to send
path: Option<String>
File path being uploaded to
ask_about_overwrites: Option<bool>
Whether to ask about overwrites
Trait Implementations§
Source§impl Clone for FileUploadPartEntity
impl Clone for FileUploadPartEntity
Source§fn clone(&self) -> FileUploadPartEntity
fn clone(&self) -> FileUploadPartEntity
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for FileUploadPartEntity
impl Debug for FileUploadPartEntity
Source§impl<'de> Deserialize<'de> for FileUploadPartEntity
impl<'de> Deserialize<'de> for FileUploadPartEntity
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for FileUploadPartEntity
impl RefUnwindSafe for FileUploadPartEntity
impl Send for FileUploadPartEntity
impl Sync for FileUploadPartEntity
impl Unpin for FileUploadPartEntity
impl UnwindSafe for FileUploadPartEntity
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more