pub struct PresignFile {
pub relative_path: String,
pub size: i64,
pub expected_sha256: String,
pub expected_md5: String,
pub platform: Platform,
pub target: Option<String>,
pub arch: Option<String>,
pub abi: Option<String>,
}Expand description
客户端打算上传的一个文件,带预先算好的 sha256 + md5 和平台分类 (用于推导对象键 + artifact 行)。
Fields§
§relative_path: String§size: i64§expected_sha256: String§expected_md5: String文件的 hex MD5。会绑成预签名 PUT 的 Content-MD5 头,让所有 S3 兼容后端
——包括不支持 AWS additional checksum(x-amz-checksum-sha256)的阿里云
OSS——在写入时强制校验传输完整性。
platform: Platform§target: Option<String>§arch: Option<String>§abi: Option<String>Trait Implementations§
Source§impl Clone for PresignFile
impl Clone for PresignFile
Source§fn clone(&self) -> PresignFile
fn clone(&self) -> PresignFile
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 PresignFile
impl ComposeSchema for PresignFile
Source§impl Debug for PresignFile
impl Debug for PresignFile
Source§impl<'de> Deserialize<'de> for PresignFile
impl<'de> Deserialize<'de> for PresignFile
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 PresignFile
impl Serialize for PresignFile
Auto Trait Implementations§
impl Freeze for PresignFile
impl RefUnwindSafe for PresignFile
impl Send for PresignFile
impl Sync for PresignFile
impl Unpin for PresignFile
impl UnsafeUnpin for PresignFile
impl UnwindSafe for PresignFile
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