Struct aliyun_oss_rust_sdk::oss::OSS
source · pub struct OSS { /* private fields */ }Expand description
OSS配置
Implementations§
source§impl<'a> OSS
impl<'a> OSS
pub fn new<S: Into<String>>( key_id: S, key_secret: S, endpoint: S, bucket: S ) -> Self
pub fn from_env() -> Self
pub fn format_host<S: AsRef<str>>(&self, bucket: S, key: S) -> String
pub fn build_request<S: AsRef<str>>( &self, key: S, build: RequestBuilder ) -> Result<(String, HeaderMap)>
pub fn date(&self) -> String
Trait Implementations§
source§impl OSSAPI for OSS
impl OSSAPI for OSS
source§fn sign_download_url(&self, key: &str, build: &mut RequestBuilder) -> String
fn sign_download_url(&self, key: &str, build: &mut RequestBuilder) -> String
签名下载URL Read more
Auto Trait Implementations§
impl RefUnwindSafe for OSS
impl Send for OSS
impl Sync for OSS
impl Unpin for OSS
impl UnwindSafe for OSS
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