pub struct PutFileRequest {
pub bucket_name: String,
pub key_name: String,
pub mime_type: String,
pub stream: ByteStream,
pub content_length: usize,
pub content_md5: Option<String>,
pub metadatas: Option<HashMap<String, String>>,
pub storage_type: Option<String>,
pub iop_cmd: Option<String>,
pub security_token: Option<String>,
/* private fields */
}Expand description
Re-export put_file module Request configuration
Fields§
§bucket_name: StringRequired: Bucket name
key_name: StringRequired: Object key name
mime_type: StringRequired: File MIME type
stream: ByteStreamRequired: File stream.
content_length: usizeOptional: File length
content_md5: Option<String>Optional: File MD5 checksum
metadatas: Option<HashMap<String, String>>Optional: User custom metadata
storage_type: Option<String>Optional: Storage type: STANDARD | IA | ARCHIVE
iop_cmd: Option<String>Optional: Image processing service
security_token: Option<String>Optional: Security token
Trait Implementations§
Source§impl ApiRequest for PutFileRequest
impl ApiRequest for PutFileRequest
type Response = PutObjectResultResponse
type Error = Error
Source§fn request<'async_trait>(
self,
) -> Pin<Box<dyn Future<Output = Result<Self::Response, Self::Error>> + Send + 'async_trait>>where
Self: 'async_trait,
fn request<'async_trait>(
self,
) -> Pin<Box<dyn Future<Output = Result<Self::Response, Self::Error>> + Send + 'async_trait>>where
Self: 'async_trait,
This method consumed the request and return the response.
Create ApiOperation impl and invoke
ApiOperation’s execute method to consume self. Read moreAuto Trait Implementations§
impl !Freeze for PutFileRequest
impl !RefUnwindSafe for PutFileRequest
impl !UnwindSafe for PutFileRequest
impl Send for PutFileRequest
impl Sync for PutFileRequest
impl Unpin for PutFileRequest
impl UnsafeUnpin for PutFileRequest
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