pub struct ROAClient { /* private fields */ }
๐Deprecated since 1.0.0: Please use the
aliyun_openapi_core_rust_sdk::client::roa::ROAClient
insteadExpand description
The roa style api client.
Implementationsยง
Sourceยงimpl Client
impl Client
Sourcepub fn new(
access_key_id: String,
access_key_secret: String,
endpoint: String,
version: String,
) -> Self
pub fn new( access_key_id: String, access_key_secret: String, endpoint: String, version: String, ) -> Self
Create a roa style api client.
Sourcepub fn execute(&self, method: &str, uri: &str) -> RequestBuilder<'_>
pub fn execute(&self, method: &str, uri: &str) -> RequestBuilder<'_>
Create a request with the method
and uri
.
Returns a RequestBuilder
for send request.
Sourcepub fn get(&self, uri: &str) -> RequestBuilder<'_>
pub fn get(&self, uri: &str) -> RequestBuilder<'_>
Create a GET
request with the uri
.
Returns a RequestBuilder
for send request.
Trait Implementationsยง
Auto Trait Implementationsยง
impl Freeze for Client
impl RefUnwindSafe for Client
impl Send for Client
impl Sync for Client
impl Unpin for Client
impl UnwindSafe for Client
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