pub struct RPClient { /* private fields */ }
๐Deprecated since 1.0.0: Please use the
aliyun_openapi_core_rust_sdk::client::rpc::RPClient
insteadExpand description
The rpc 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 rpc style api client.
Sourcepub fn get(&self, action: &str) -> RequestBuilder<'_>
pub fn get(&self, action: &str) -> RequestBuilder<'_>
Create a GET
request with the action
.
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