pub struct DescribeSubnets<'a> {
pub region: Option<&'a str>,
pub filters: Option<Vec<Filter<'a>>>,
pub subnet_ids: Option<Vec<&'a str>>,
pub vpc_id: Option<&'a str>,
pub limit: Option<u32>,
pub offset: Option<u32>,
}
Expand description
Request parameters for VPC DescribeSubnets
.
Fields§
§region: Option<&'a str>
§filters: Option<Vec<Filter<'a>>>
§subnet_ids: Option<Vec<&'a str>>
§vpc_id: Option<&'a str>
§limit: Option<u32>
§offset: Option<u32>
Implementations§
Source§impl<'a> DescribeSubnets<'a>
impl<'a> DescribeSubnets<'a>
pub fn new() -> Self
pub fn with_region(self, region: &'a str) -> Self
pub fn push_filter(self, filter: Filter<'a>) -> Self
pub fn push_subnet_id(self, subnet_id: &'a str) -> Self
pub fn with_vpc_id(self, vpc_id: &'a str) -> Self
pub fn with_limit(self, limit: u32) -> Self
pub fn with_offset(self, offset: u32) -> Self
Trait Implementations§
Source§impl<'a> Default for DescribeSubnets<'a>
impl<'a> Default for DescribeSubnets<'a>
Source§impl<'a> Endpoint for DescribeSubnets<'a>
impl<'a> Endpoint for DescribeSubnets<'a>
type Output = DescribeSubnetsResponse
fn service(&self) -> Cow<'static, str>
fn action(&self) -> Cow<'static, str>
fn version(&self) -> Cow<'static, str>
fn region(&self) -> Option<Cow<'_, str>>
fn payload(&self) -> Value
fn scheme(&self) -> Cow<'static, str>
fn host(&self) -> Cow<'_, str>
fn path(&self) -> Cow<'_, str>
fn extra_headers(&self) -> Option<Vec<(Cow<'_, str>, Cow<'_, str>)>>
fn parse(&self, body: Value) -> Result<Self::Output, TencentCloudError>
Auto Trait Implementations§
impl<'a> Freeze for DescribeSubnets<'a>
impl<'a> RefUnwindSafe for DescribeSubnets<'a>
impl<'a> Send for DescribeSubnets<'a>
impl<'a> Sync for DescribeSubnets<'a>
impl<'a> Unpin for DescribeSubnets<'a>
impl<'a> UnwindSafe for DescribeSubnets<'a>
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