pub struct Vpc { /* private fields */ }Expand description
Represents the VPC service, encapsulating the client information required to interact with the Volcengine VPC service.
Trait Implementations§
Source§impl VpcService for Vpc
Implementation of the VpcService trait for the Vpc struct.
This implementation provides the necessary logic to interact with the Volcengine VPC service,
including creating a new VPC service instance, describing VPCs, and describing subnets.
impl VpcService for Vpc
Implementation of the VpcService trait for the Vpc struct. This implementation provides the necessary logic to interact with the Volcengine VPC service, including creating a new VPC service instance, describing VPCs, and describing subnets.
Source§fn new_vpc(session: Session) -> Result<Self, Error>
fn new_vpc(session: Session) -> Result<Self, Error>
Creates a new VPC service instance from a given session.
§Arguments
session: The session object containing the necessary configuration and credentials.
§Returns
Result<Self, error::Error>: On success, returns a new instance of the Vpc struct. On failure, returns an error indicating the cause of the failure.
Source§async fn new_describe_vpcs(
&self,
request: DescribeVpcsReq,
) -> Result<DescribeVpcsResp, Error>
async fn new_describe_vpcs( &self, request: DescribeVpcsReq, ) -> Result<DescribeVpcsResp, Error>
Describes VPCs.
§Arguments
&self: Reference to the current VPC service instance.request: The request structure containing the parameters for describing VPCs.
§Returns
Result<volcengine_sdk_protobuf::protobuf::vpc_vpc::DescribeVpcsResp, error::Error>: On success, returns the response from the VPC service. On failure, returns an error indicating the cause of the failure.
Source§async fn new_describe_subnets(
&self,
request: DescribeSubnetsReq,
) -> Result<DescribeSubnetsResp, Error>
async fn new_describe_subnets( &self, request: DescribeSubnetsReq, ) -> Result<DescribeSubnetsResp, Error>
Describes VPC subnets.
§Arguments
&self: Reference to the current VPC service instance.request: The request structure containing the parameters for describing VPC subnets.
§Returns
Result<volcengine_sdk_protobuf::protobuf::vpc_subnet::DescribeSubnetsResp, error::Error>: On success, returns the response from the VPC service. On failure, returns an error indicating the cause of the failure.
Auto Trait Implementations§
impl Freeze for Vpc
impl RefUnwindSafe for Vpc
impl Send for Vpc
impl Sync for Vpc
impl Unpin for Vpc
impl UnwindSafe for Vpc
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
Mutably borrows from an owned value. Read more
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>
Wrap the input message
T in a tonic::Request