pub struct ObjectConfigBuilder { /* private fields */ }Expand description
Re-export configuration for s3 credential
Builder for ObjectConfig.
Implementations§
Source§impl ObjectConfigBuilder
impl ObjectConfigBuilder
Sourcepub fn endpoint<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
pub fn endpoint<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
default http request endpoint.
Sourcepub fn private_key<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
pub fn private_key<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
private key
Sourcepub fn public_key<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
pub fn public_key<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
public key
Sourcepub fn proxy_suffix<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
pub fn proxy_suffix<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
代理后缀 (eg: ‘ufileos.com’)
Sourcepub fn custom_host<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
pub fn custom_host<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
自定义域名 (eg: ‘api.ucloud.cn’):若配置了非空自定义域名,则使用自定义域名,不会使用 region + proxySuffix 拼接
Sourcepub fn protocol<VALUE: Into<UfileProtocol>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn protocol<VALUE: Into<UfileProtocol>>( &mut self, value: VALUE, ) -> &mut Self
protocol
Sourcepub fn build(&self) -> Result<ObjectConfig, ObjectConfigBuilderError>
pub fn build(&self) -> Result<ObjectConfig, ObjectConfigBuilderError>
Trait Implementations§
Source§impl Clone for ObjectConfigBuilder
impl Clone for ObjectConfigBuilder
Source§fn clone(&self) -> ObjectConfigBuilder
fn clone(&self) -> ObjectConfigBuilder
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 ObjectConfigBuilder
impl RefUnwindSafe for ObjectConfigBuilder
impl Send for ObjectConfigBuilder
impl Sync for ObjectConfigBuilder
impl Unpin for ObjectConfigBuilder
impl UnsafeUnpin for ObjectConfigBuilder
impl UnwindSafe for ObjectConfigBuilder
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