pub enum ClientServiceName {
Iam,
Ecs,
Vpc,
Rds,
Redis,
Clb,
}Expand description
Enum representing the available service names for the Volcengine API client.
This enum is used to define the different services that are accessible through the Volcengine API, including services such as IAM, ECS, VPC, RDS, Redis, and CLB. Each variant represents a distinct service that can be used by the API client to make requests to the corresponding Volcengine API endpoint.
§Variants:
Iam: The Identity and Access Management (IAM) service.Ecs: The Elastic Compute Service (ECS).Vpc: The Virtual Private Cloud (VPC) service.Rds: The Relational Database Service (RDS) for MySQL-based databases.Redis: The Redis service.Clb: The Cloud Load Balancer (CLB) service.
Variants§
Implementations§
Source§impl ClientServiceName
Implementation block for the ClientServiceName enum.
This block contains methods that provide functionality
for working with the ClientServiceName enum.
@author: Jerry.Yang
@date: 2024-11-08 11:00:02
@return: None
impl ClientServiceName
Implementation block for the ClientServiceName enum.
This block contains methods that provide functionality
for working with the ClientServiceName enum.
@author: Jerry.Yang
@date: 2024-11-08 11:00:02
@return: None
Sourcepub fn as_str(&self) -> &str
pub fn as_str(&self) -> &str
Converts the ClientServiceName enum variant to a string representation.
This method returns a string slice (&str) that corresponds to the service name
associated with the specific ClientServiceName variant. This is useful for
easily converting the enum variant into a string that can be used for making
API requests, logging, or other purposes where a string representation of the
service name is required.
§Returns
Returns a &str representing the service name in lowercase.
§Example
let service_name = ClientServiceName::Iam.as_str();
assert_eq!(service_name, "iam");Trait Implementations§
Source§impl Clone for ClientServiceName
impl Clone for ClientServiceName
Source§fn clone(&self) -> ClientServiceName
fn clone(&self) -> ClientServiceName
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreAuto Trait Implementations§
impl Freeze for ClientServiceName
impl RefUnwindSafe for ClientServiceName
impl Send for ClientServiceName
impl Sync for ClientServiceName
impl Unpin for ClientServiceName
impl UnwindSafe for ClientServiceName
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T in a tonic::Request