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>>>>,
Trait Implementations
Auto Trait Implementations
impl !RefUnwindSafe for OSS
impl !UnwindSafe for OSS
Blanket Implementations
Mutably borrows from an owned value. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more