Trait Endpoint
Source pub trait Endpoint {
type Output: DeserializeOwned + Send + Sync + 'static;
// Required methods
fn service(&self) -> Cow<'static, str>;
fn action(&self) -> Cow<'static, str>;
fn version(&self) -> Cow<'static, str>;
// Provided methods
fn region(&self) -> Option<Cow<'_, str>> { ... }
fn scheme(&self) -> Cow<'static, str> { ... }
fn host(&self) -> Cow<'_, str> { ... }
fn path(&self) -> Cow<'_, str> { ... }
fn payload(&self) -> Value { ... }
fn extra_headers(&self) -> Option<Vec<(Cow<'_, str>, Cow<'_, str>)>> { ... }
fn parse(&self, body: Value) -> Result<Self::Output, TencentCloudError> { ... }
}