RdsService

Trait RdsService 

Source
pub trait RdsService {
    // Required methods
    fn new_rds(session: Session) -> Result<Rds, Error>;
    fn new_create_db_instance(
        &self,
        request: CreateDbInstanceReq,
    ) -> impl Future<Output = Result<CreateDbInstanceResp, Error>>;
    fn new_describe_db_instance_detail(
        &self,
        request: DescribeDbInstanceDetailReq,
    ) -> impl Future<Output = Result<DescribeDbInstanceDetailResp, Error>>;
    fn new_create_db_endpoint(
        &self,
        request: CreateDbEndpointReq,
    ) -> impl Future<Output = Result<CreateDbEndpointResp, Error>>;
    fn new_create_db_account(
        &self,
        request: CreateDbAccountReq,
    ) -> impl Future<Output = Result<CreateDbAccountResp, Error>>;
    fn new_create_db_database(
        &self,
        request: CreateDatabaseReq,
    ) -> impl Future<Output = Result<CreateDatabaseResp, Error>>;
    fn new_modify_allow_list(
        &self,
        request: ModifyAllowListReq,
    ) -> impl Future<Output = Result<ModifyAllowListResp, Error>>;
    fn new_modify_db_instance_spec(
        &self,
        request: ModifyDbInstanceSpecReq,
    ) -> impl Future<Output = Result<ModifyDbInstanceSpecResp, Error>>;
    fn new_describe_db_databases(
        &self,
        request: DescribeDatabasesReq,
    ) -> impl Future<Output = Result<DescribeDatabasesResp, Error>>;
    fn new_describe_db_accounts(
        &self,
        request: DescribeDbAccountsReq,
    ) -> impl Future<Output = Result<DescribeDbAccountsResp, Error>>;
    fn new_modify_db_endpoint(
        &self,
        request: ModifyDbEndpointReq,
    ) -> impl Future<Output = Result<ModifyDbEndpointResp, Error>>;
    fn new_describe_db_instances(
        &self,
        request: DescribeDbInstancesReq,
    ) -> impl Future<Output = Result<DescribeDbInstancesResp, Error>>;
}
Expand description

Defines the RDS service interface, providing methods for various RDS operations. This trait encapsulates the functionality required to interact with the Volcengine RDS service. @author: Jerry.Yang @date: 2024-11-05 14:27:29

Required Methods§

Source

fn new_rds(session: Session) -> Result<Rds, Error>

Creates a new RDS service instance from a given session. This method initializes the RDS service with the provided session information.

Source

fn new_create_db_instance( &self, request: CreateDbInstanceReq, ) -> impl Future<Output = Result<CreateDbInstanceResp, Error>>

Creates a new database instance. This method sends a request to the Volcengine RDS service to create a new database instance.

Source

fn new_describe_db_instance_detail( &self, request: DescribeDbInstanceDetailReq, ) -> impl Future<Output = Result<DescribeDbInstanceDetailResp, Error>>

Describes the details of a specific database instance. This method retrieves detailed information about a specific database instance from the Volcengine RDS service.

Source

fn new_create_db_endpoint( &self, request: CreateDbEndpointReq, ) -> impl Future<Output = Result<CreateDbEndpointResp, Error>>

Creates a new database endpoint. This method sends a request to the Volcengine RDS service to create a new database endpoint.

Source

fn new_create_db_account( &self, request: CreateDbAccountReq, ) -> impl Future<Output = Result<CreateDbAccountResp, Error>>

Creates a new database account. This method sends a request to the Volcengine RDS service to create a new database account.

Source

fn new_create_db_database( &self, request: CreateDatabaseReq, ) -> impl Future<Output = Result<CreateDatabaseResp, Error>>

Creates a new database. This method sends a request to the Volcengine RDS service to create a new database.

Source

fn new_modify_allow_list( &self, request: ModifyAllowListReq, ) -> impl Future<Output = Result<ModifyAllowListResp, Error>>

Modifies the allow list of a database instance. This method sends a request to the Volcengine RDS service to modify the allow list of a database instance.

Source

fn new_modify_db_instance_spec( &self, request: ModifyDbInstanceSpecReq, ) -> impl Future<Output = Result<ModifyDbInstanceSpecResp, Error>>

Modifies the specifications of a database instance. This method sends a request to the Volcengine RDS service to modify the specifications (e.g., CPU, memory) of a database instance.

Source

fn new_describe_db_databases( &self, request: DescribeDatabasesReq, ) -> impl Future<Output = Result<DescribeDatabasesResp, Error>>

Describes the databases of a database instance. This method retrieves information about the databases of a specific database instance from the Volcengine RDS service.

Source

fn new_describe_db_accounts( &self, request: DescribeDbAccountsReq, ) -> impl Future<Output = Result<DescribeDbAccountsResp, Error>>

Describes the accounts of a database instance. This method retrieves information about the accounts of a specific database instance from the Volcengine RDS service.

Source

fn new_modify_db_endpoint( &self, request: ModifyDbEndpointReq, ) -> impl Future<Output = Result<ModifyDbEndpointResp, Error>>

Modifies a database endpoint. This method sends a request to the Volcengine RDS service to modify a database endpoint.

Source

fn new_describe_db_instances( &self, request: DescribeDbInstancesReq, ) -> impl Future<Output = Result<DescribeDbInstancesResp, Error>>

Describes the database instances. This method retrieves information about the database instances from the Volcengine RDS service.

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.

Implementors§

Source§

impl RdsService for Rds

Implementation of the RdsService trait for the Rds struct. This implementation provides the necessary logic to interact with the Volcengine RDS service, including creating instances, databases, endpoints, and accounts, as well as modifying and describing them.