pub struct UploadPartCopyOptions {
pub source_object_version_id: Option<String>,
pub copy_source_range: Option<String>,
pub copy_source_if_match: Option<String>,
pub copy_source_if_none_match: Option<String>,
pub copy_source_if_unmodified_since: Option<String>,
pub copy_source_if_modified_since: Option<String>,
}Expand description
Other options for upload part copy
Fields§
§source_object_version_id: Option<String>如果源 Object 开启了版本控制,这里可以指明版本,实现从 Object 的指定版本进行拷贝
copy_source_range: Option<String>源 Object 的拷贝范围。例如设置 bytes=0-9,表示拷贝 0 到 9 这 10 个字节。
这个范围是两端闭区间的 [start, end],并且下标从 0 开始。也就是最大的取值范围是 [0, file_length - 1]
- 不指定该请求头时,表示拷贝整个源 Object。
- 当指定的范围不符合规范时,则拷贝整个源 Object
copy_source_if_match: Option<String>§copy_source_if_none_match: Option<String>§copy_source_if_unmodified_since: Option<String>§copy_source_if_modified_since: Option<String>Trait Implementations§
Source§impl Clone for UploadPartCopyOptions
impl Clone for UploadPartCopyOptions
Source§fn clone(&self) -> UploadPartCopyOptions
fn clone(&self) -> UploadPartCopyOptions
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 UploadPartCopyOptions
impl Debug for UploadPartCopyOptions
Source§impl Default for UploadPartCopyOptions
impl Default for UploadPartCopyOptions
Source§fn default() -> UploadPartCopyOptions
fn default() -> UploadPartCopyOptions
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for UploadPartCopyOptions
impl<'de> Deserialize<'de> for UploadPartCopyOptions
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 UploadPartCopyOptions
impl RefUnwindSafe for UploadPartCopyOptions
impl Send for UploadPartCopyOptions
impl Sync for UploadPartCopyOptions
impl Unpin for UploadPartCopyOptions
impl UnsafeUnpin for UploadPartCopyOptions
impl UnwindSafe for UploadPartCopyOptions
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