pub struct ObjectOptAuthParam {
pub method: Method,
pub bucket: String,
pub key_name: String,
pub content_type: Option<String>,
pub content_md5: Option<String>,
pub date: Option<String>,
pub x_ufile_copy_source: Option<String>,
pub x_ufile_copy_source_range: Option<String>,
}Expand description
Re-export configuration for s3 credential
Fields§
§method: MethodRequired. Specify the http method.
bucket: StringRequired. Specify the name of the bucket.
key_name: StringRequired. Specify the name of the object.
content_type: Option<String>Content-Type. Specify the content type of the file.
content_md5: Option<String>Content-MD5. Specify the md5 of the file.
date: Option<String>Date. Specify the date of the request.
x_ufile_copy_source: Option<String>Specify the source file to be copied.
Example:
let source = "ufile://bucket-name/file-name";x_ufile_copy_source_range: Option<String>X-UFile-Copy-Source-Range. Specify the range of the file to be copied.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ObjectOptAuthParam
impl RefUnwindSafe for ObjectOptAuthParam
impl Send for ObjectOptAuthParam
impl Sync for ObjectOptAuthParam
impl Unpin for ObjectOptAuthParam
impl UnsafeUnpin for ObjectOptAuthParam
impl UnwindSafe for ObjectOptAuthParam
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