pub struct CreateSubnet<'a> {
pub region: Option<&'a str>,
pub vpc_id: &'a str,
pub subnet_name: &'a str,
pub cidr_block: &'a str,
pub zone: &'a str,
pub is_default: Option<bool>,
pub tags: Option<Vec<Tag<'a>>>,
}
Expand description
Request parameters for VPC CreateSubnet
.
Fieldsยง
ยงregion: Option<&'a str>
ยงvpc_id: &'a str
ยงsubnet_name: &'a str
ยงcidr_block: &'a str
ยงzone: &'a str
ยงis_default: Option<bool>
Implementationsยง
Trait Implementationsยง
Sourceยงimpl<'a> Endpoint for CreateSubnet<'a>
impl<'a> Endpoint for CreateSubnet<'a>
type Output = CreateSubnetResponse
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 CreateSubnet<'a>
impl<'a> RefUnwindSafe for CreateSubnet<'a>
impl<'a> Send for CreateSubnet<'a>
impl<'a> Sync for CreateSubnet<'a>
impl<'a> Unpin for CreateSubnet<'a>
impl<'a> UnwindSafe for CreateSubnet<'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