[−][src]Struct oss::OSSClient
OSSClient - Alibaba Cloud OSS Client
Reference URL: https://help.aliyun.com/document_detail/31952.html
Fields
endpoint: &'a str
access_key_id: &'a str
access_key_secret: &'a str
Methods
impl<'a> OSSClient<'a>
[src]
pub fn new(
endpoint: &'a str,
access_key_id: &'a str,
access_key_secret: &'a str
) -> OSSClient<'a>
[src]
endpoint: &'a str,
access_key_id: &'a str,
access_key_secret: &'a str
) -> OSSClient<'a>
New OSSClient
Use access_key_id and access_key_secret to create a OSSClient Consider support STS!
pub fn put_file(
&self,
bucket_name: &str,
key: &str,
expire_in_seconds: u64,
file: File
) -> XResult<Response>
[src]
&self,
bucket_name: &str,
key: &str,
expire_in_seconds: u64,
file: File
) -> XResult<Response>
pub fn delete_file(&self, bucket_name: &str, key: &str) -> XResult<Response>
[src]
pub fn get_file_content(
&self,
bucket_name: &str,
key: &str
) -> XResult<Option<String>>
[src]
&self,
bucket_name: &str,
key: &str
) -> XResult<Option<String>>
pub fn put_file_content(
&self,
bucket_name: &str,
key: &str,
content: &str
) -> XResult<Response>
[src]
&self,
bucket_name: &str,
key: &str,
content: &str
) -> XResult<Response>
pub fn generate_signed_put_url(
&self,
bucket_name: &str,
key: &str,
expire_in_seconds: u64
) -> String
[src]
&self,
bucket_name: &str,
key: &str,
expire_in_seconds: u64
) -> String
pub fn generate_signed_get_url(
&self,
bucket_name: &str,
key: &str,
expire_in_seconds: u64
) -> String
[src]
&self,
bucket_name: &str,
key: &str,
expire_in_seconds: u64
) -> String
pub fn generate_signed_delete_url(
&self,
bucket_name: &str,
key: &str,
expire_in_seconds: u64
) -> String
[src]
&self,
bucket_name: &str,
key: &str,
expire_in_seconds: u64
) -> String
pub fn generate_signed_url(
&self,
verb: &str,
bucket_name: &str,
key: &str,
expire_in_seconds: u64,
is_https: bool
) -> String
[src]
&self,
verb: &str,
bucket_name: &str,
key: &str,
expire_in_seconds: u64,
is_https: bool
) -> String
Auto Trait Implementations
impl<'a> RefUnwindSafe for OSSClient<'a>
impl<'a> Send for OSSClient<'a>
impl<'a> Sync for OSSClient<'a>
impl<'a> Unpin for OSSClient<'a>
impl<'a> UnwindSafe for OSSClient<'a>
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
U: TryFrom<T>,