pub struct UploadParams {
pub content_type: Option<String>,
pub content_md5: Option<String>,
pub content_secret: Option<String>,
pub x_upyun_meta_x: Option<String>,
pub x_upyun_meta_ttl: Option<u64>,
pub x_gmkerl_thumb: Option<String>,
}
Expand description
上传文件的参数
Fields§
§content_type: Option<String>
文件类型,默认使用文件扩展名作为文件类型
content_md5: Option<String>
上传文件的 MD5 值,如果请求中文件太大计算 MD5 不方便,可以为空
content_secret: Option<String>
文件密钥,用于保护文件,防止文件被直接访问,见 Content-Secret 参数说明
x_upyun_meta_x: Option<String>
文件元信息,见 Metadata
x_upyun_meta_ttl: Option<u64>
文件元信息, 指定文件的生存时间,单位天,最大支持180天,见 Metadata
x_gmkerl_thumb: Option<String>
图片预处理参数,见上传预处理(同步)
Auto Trait Implementations§
impl Freeze for UploadParams
impl RefUnwindSafe for UploadParams
impl Send for UploadParams
impl Sync for UploadParams
impl Unpin for UploadParams
impl UnwindSafe for UploadParams
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