pub struct VpcsPatchBody {
pub default: Option<bool>,
pub description: Option<VpcsPatchBodyDescription>,
pub name: Option<VpcsPatchBodyName>,
}Expand description
VpcsPatchBody
JSON schema
{
"allOf": [
{
"type": "object",
"properties": {
"description": {
"description": "A free-form text field for describing the VPC's purpose. It may be a maximum of 255 characters.",
"examples": [
"VPC for production environment"
],
"type": "string",
"maxLength": 255
},
"name": {
"description": "The name of the VPC. Must be unique and may only contain alphanumeric characters, dashes, and periods.",
"examples": [
"env.prod-vpc"
],
"type": "string",
"pattern": "^[a-zA-Z0-9\\-\\.]+$"
}
}
},
{
"type": "object",
"properties": {
"default": {
"description": "A boolean value indicating whether or not the VPC is the default network for the region. All applicable resources are placed into the default VPC network unless otherwise specified during their creation. The `default` field cannot be unset from `true`. If you want to set a new default VPC network, update the `default` field of another VPC network in the same region. The previous network's `default` field will be set to `false` when a new default VPC has been defined.",
"examples": [
true
],
"type": "boolean"
}
}
}
]
}Fields§
§default: Option<bool>A boolean value indicating whether or not the VPC is the default network for the region. All applicable resources are placed into the default VPC network unless otherwise specified during their creation. The default field cannot be unset from true. If you want to set a new default VPC network, update the default field of another VPC network in the same region. The previous network’s default field will be set to false when a new default VPC has been defined.
description: Option<VpcsPatchBodyDescription>A free-form text field for describing the VPC’s purpose. It may be a maximum of 255 characters.
name: Option<VpcsPatchBodyName>The name of the VPC. Must be unique and may only contain alphanumeric characters, dashes, and periods.
Trait Implementations§
Source§impl Clone for VpcsPatchBody
impl Clone for VpcsPatchBody
Source§fn clone(&self) -> VpcsPatchBody
fn clone(&self) -> VpcsPatchBody
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for VpcsPatchBody
impl Debug for VpcsPatchBody
Source§impl Default for VpcsPatchBody
impl Default for VpcsPatchBody
Source§impl<'de> Deserialize<'de> for VpcsPatchBody
impl<'de> Deserialize<'de> for VpcsPatchBody
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<&VpcsPatchBody> for VpcsPatchBody
impl From<&VpcsPatchBody> for VpcsPatchBody
Source§fn from(value: &VpcsPatchBody) -> Self
fn from(value: &VpcsPatchBody) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for VpcsPatchBody
impl RefUnwindSafe for VpcsPatchBody
impl Send for VpcsPatchBody
impl Sync for VpcsPatchBody
impl Unpin for VpcsPatchBody
impl UnsafeUnpin for VpcsPatchBody
impl UnwindSafe for VpcsPatchBody
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