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 Constants§
Required Associated Types§
Sourcetype Response: for<'a> Deserialize<'a> + Debug
type Response: for<'a> Deserialize<'a> + Debug
the api response type
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.