Trait tencentcloud::api::Api

source ·
pub trait Api {
    type Request: Serialize + Debug;
    type Response: for<'a> Deserialize<'a> + Debug;

    const VERSION: &'static str;
    const ACTION: &'static str;
    const SERVICE: &'static str;
    const HOST: &'static str;
}
Expand description

tencentcloud api

the Api define an api request type, response type and other info

Required Associated Types§

source

type Request: Serialize + Debug

the api request type

source

type Response: for<'a> Deserialize<'a> + Debug

the api response type

Required Associated Constants§

source

const VERSION: &'static str

the api version, format is 2018-3-21

source

const ACTION: &'static str

the api action, for example: the tmt text translate is TextTranslate

source

const SERVICE: &'static str

the api service, for example: the tmt text translate is tmt

source

const HOST: &'static str

the api host, for example: the tmt text translate is tmt.tencentcloudapi.com

Implementors§