pub struct ObjectOptAuthParamBuilder { /* private fields */ }Expand description
Re-export configuration for s3 credential
Builder for ObjectOptAuthParam.
Implementations§
Source§impl ObjectOptAuthParamBuilder
impl ObjectOptAuthParamBuilder
Sourcepub fn bucket<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
pub fn bucket<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
Required. Specify the name of the bucket.
Sourcepub fn key_name<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
pub fn key_name<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
Required. Specify the name of the object.
Sourcepub fn content_type<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
pub fn content_type<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
Content-Type. Specify the content type of the file.
Sourcepub fn content_md5<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
pub fn content_md5<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
Content-MD5. Specify the md5 of the file.
Sourcepub fn date<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
pub fn date<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
Date. Specify the date of the request.
Sourcepub fn x_ufile_copy_source<VALUE: Into<String>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn x_ufile_copy_source<VALUE: Into<String>>( &mut self, value: VALUE, ) -> &mut Self
Specify the source file to be copied.
Example:
let source = "ufile://bucket-name/file-name";Sourcepub fn x_ufile_copy_source_range<VALUE: Into<String>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn x_ufile_copy_source_range<VALUE: Into<String>>( &mut self, value: VALUE, ) -> &mut Self
X-UFile-Copy-Source-Range. Specify the range of the file to be copied.
Sourcepub fn build(
&self,
) -> Result<ObjectOptAuthParam, ObjectOptAuthParamBuilderError>
pub fn build( &self, ) -> Result<ObjectOptAuthParam, ObjectOptAuthParamBuilderError>
Trait Implementations§
Source§impl Clone for ObjectOptAuthParamBuilder
impl Clone for ObjectOptAuthParamBuilder
Source§fn clone(&self) -> ObjectOptAuthParamBuilder
fn clone(&self) -> ObjectOptAuthParamBuilder
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 moreAuto Trait Implementations§
impl Freeze for ObjectOptAuthParamBuilder
impl RefUnwindSafe for ObjectOptAuthParamBuilder
impl Send for ObjectOptAuthParamBuilder
impl Sync for ObjectOptAuthParamBuilder
impl Unpin for ObjectOptAuthParamBuilder
impl UnsafeUnpin for ObjectOptAuthParamBuilder
impl UnwindSafe for ObjectOptAuthParamBuilder
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