Client

Struct Client 

Source
pub struct Client {
Show 16 fields pub SourceIp: String, pub SecureTransport: String, pub isInsecure: bool, pub regionId: String, pub config: Option<Config>, pub httpProxy: String, pub httpsProxy: String, pub noProxy: String, pub userAgent: HashMap<String, String>, pub signer: AccessKeySigner, pub httpClient: Client, pub EndpointMap: HashMap<String, String>, pub EndpointType: String, pub Network: String, pub Domain: String, pub isOpenAsync: bool,
}

Fields§

§SourceIp: String§SecureTransport: String§isInsecure: bool§regionId: String§config: Option<Config>§httpProxy: String§httpsProxy: String§noProxy: String§userAgent: HashMap<String, String>§signer: AccessKeySigner§httpClient: Client§EndpointMap: HashMap<String, String>§EndpointType: String§Network: String§Domain: String§isOpenAsync: bool

Implementations§

Source§

impl Client

Source

pub fn NewClientWithAccessKey( regionId: &str, accessKeyId: &str, accessKeySecret: &str, ) -> AliyunResult<Client>

Source

pub fn InitWithAccessKey( &mut self, regionId: &str, accessKeyId: &str, accessKeySecret: &str, ) -> AliyunResult<()>

Source

pub fn InitClientConfig(&mut self) -> Config

Source

pub fn InitWithOptions( &mut self, regionId: &str, config: &Config, credential: AccessKeyCredential, ) -> AliyunResult<()>

Source

pub fn ProcessCommonRequestWithSigner(request: Request)

Source

pub fn DoAction( &mut self, request: &mut AcsRequest, response: &mut AcsResponse, ) -> AliyunResult<()>

Source

pub fn DoActionWithSigner( &self, request: &mut AcsRequest, response: &mut AcsResponse, signer: Option<Box<dyn Signer>>, ) -> AliyunResult<()>

Source

pub fn buildRequestWithSigner( &self, request: &mut AcsRequest, signer: Option<Box<dyn Signer>>, ) -> AliyunResult<Request>

Source

pub fn GetEndpointRules( &self, regionId: &str, product: &str, ) -> AliyunResult<String>

Source§

impl Client

Source

pub fn SendSms( &mut self, request: &mut SendSmsRequest, ) -> AliyunResult<SendSmsResponse>

Trait Implementations§

Source§

impl Default for Client

Source§

fn default() -> Client

Returns the “default value” for a type. Read more

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> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V