Struct oss_sdk::oss::OSS [−][src]
pub struct OSS {
pub client: Client,
// some fields omitted
}
Fields
client: Client
Implementations
pub async fn list_bucket<S, R>(
&self,
resources: R
) -> Result<ListBuckets, Error> where
S: AsRef<str>,
R: Into<Option<HashMap<S, Option<S>>>>,
pub async fn get_object<S>(
&self,
object: S,
headers: Option<HashMap<S, S>>,
resources: Option<HashMap<S, Option<S>>>
) -> Result<Bytes, Error> where
S: AsRef<str>,
pub async fn head_object<S>(
&self,
object: S,
headers: Option<HashMap<S, S>>,
resources: Option<HashMap<S, Option<S>>>
) -> Result<HeaderMap, Error> where
S: AsRef<str>,
pub async fn put_object_from_buffer<S1, S2, H, R>(
&self,
buf: &[u8],
object: S1,
headers: H,
resources: R
) -> Result<Bytes, Error> where
S1: AsRef<str>,
S2: AsRef<str>,
H: Into<Option<HashMap<S2, S2>>>,
R: Into<Option<HashMap<S2, Option<S2>>>>,
pub async fn put_object_from_file<S1, S2, S3, H, R>(
&self,
file: S1,
object_name: S2,
headers: H,
resources: R
) -> Result<(), Error> where
S1: AsRef<str>,
S2: AsRef<str>,
S3: AsRef<str>,
H: Into<Option<HashMap<S3, S3>>>,
R: Into<Option<HashMap<S3, Option<S3>>>>,
pub async fn initiate_multipart_upload<S2, S3, H>(
&self,
object_name: S2,
headers: H
) -> Result<String, Error> where
S2: AsRef<str>,
S3: AsRef<str>,
H: Into<Option<HashMap<S3, S3>>>,
pub async fn upload_part<S1, S2, S3, H>(
&self,
file: S1,
object_name: S2,
chunk: FileChunk,
upload_id: String,
headers: H
) -> Result<String, Error> where
S1: AsRef<str>,
S2: AsRef<str>,
S3: AsRef<str>,
H: Into<Option<HashMap<S3, S3>>>,
Trait Implementations
Auto Trait Implementations
impl !RefUnwindSafe for OSS
impl !UnwindSafe for OSS
Blanket Implementations
Mutably borrows from an owned value. Read more
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more