Endpoint

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> { ... }
}

Required Associated Typesยง

Required Methodsยง

Source

fn service(&self) -> Cow<'static, str>

Source

fn action(&self) -> Cow<'static, str>

Source

fn version(&self) -> Cow<'static, str>

Provided Methodsยง

Source

fn region(&self) -> Option<Cow<'_, str>>

Source

fn scheme(&self) -> Cow<'static, str>

Source

fn host(&self) -> Cow<'_, str>

Source

fn path(&self) -> Cow<'_, str>

Source

fn payload(&self) -> Value

Source

fn extra_headers(&self) -> Option<Vec<(Cow<'_, str>, Cow<'_, str>)>>

Source

fn parse(&self, body: Value) -> Result<Self::Output, TencentCloudError>

Implementorsยง