pub struct PresignPart {
pub object_key: String,
pub presigned_url: String,
pub headers: BTreeMap<String, String>,
}Expand description
单个文件的预签名 PUT。headers 必须原样发到 PUT 上——它们携带 Content-MD5
(以及后端支持时的 x-amz-checksum-sha256),让对象存储强制校验、拒绝损坏的 body。
Fields§
§object_key: String§presigned_url: String§headers: BTreeMap<String, String>Trait Implementations§
Source§impl Clone for PresignPart
impl Clone for PresignPart
Source§fn clone(&self) -> PresignPart
fn clone(&self) -> PresignPart
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl ComposeSchema for PresignPart
impl ComposeSchema for PresignPart
Source§impl Debug for PresignPart
impl Debug for PresignPart
Source§impl<'de> Deserialize<'de> for PresignPart
impl<'de> Deserialize<'de> for PresignPart
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
Source§impl Serialize for PresignPart
impl Serialize for PresignPart
Auto Trait Implementations§
impl Freeze for PresignPart
impl RefUnwindSafe for PresignPart
impl Send for PresignPart
impl Sync for PresignPart
impl Unpin for PresignPart
impl UnsafeUnpin for PresignPart
impl UnwindSafe for PresignPart
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