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ยง

Sourceยง

impl Endpoint for DescribeAccountBalance

Sourceยง

impl Endpoint for DescribeProjects

Sourceยง

impl<'a> Endpoint for UpdateDomainConfig<'a>

Sourceยง

impl<'a> Endpoint for DescribeImages<'a>

Sourceยง

impl<'a> Endpoint for DescribeInstanceVncUrl<'a>

Sourceยง

impl<'a> Endpoint for DescribeInstances<'a>

Sourceยง

impl<'a> Endpoint for ModifyInstancesProject<'a>

Sourceยง

impl<'a> Endpoint for RebootInstances<'a>

Sourceยง

impl<'a> Endpoint for ResetInstancesPassword<'a>

Sourceยง

impl<'a> Endpoint for RunInstances<'a>

Sourceยง

impl<'a> Endpoint for StartInstances<'a>

Sourceยง

impl<'a> Endpoint for StopInstances<'a>

Sourceยง

impl<'a> Endpoint for TerminateInstances<'a>

Sourceยง

impl<'a> Endpoint for CreateTXTRecord<'a>

Sourceยง

impl<'a> Endpoint for DeleteRecord<'a>

Sourceยง

impl<'a> Endpoint for ModifyTXTRecord<'a>

Sourceยง

impl<'a> Endpoint for ApplyCertificate<'a>

Sourceยง

impl<'a> Endpoint for CheckCertificate<'a>

Sourceยง

impl<'a> Endpoint for DownloadCertificate<'a>

Sourceยง

impl<'a> Endpoint for UploadCertificate<'a>

Sourceยง

impl<'a> Endpoint for CreateSubnet<'a>

Sourceยง

impl<'a> Endpoint for CreateVpc<'a>

Sourceยง

impl<'a> Endpoint for DescribeSubnets<'a>

Sourceยง

impl<'a> Endpoint for DescribeVpcs<'a>