Struct aws_sdk_ec2::model::Ipv6CidrBlock
source · #[non_exhaustive]pub struct Ipv6CidrBlock { /* private fields */ }
Expand description
Describes an IPv6 CIDR block.
Implementations§
source§impl Ipv6CidrBlock
impl Ipv6CidrBlock
sourcepub fn ipv6_cidr_block(&self) -> Option<&str>
pub fn ipv6_cidr_block(&self) -> Option<&str>
The IPv6 CIDR block.
source§impl Ipv6CidrBlock
impl Ipv6CidrBlock
sourcepub fn builder() -> Builder
pub fn builder() -> Builder
Creates a new builder-style object to manufacture Ipv6CidrBlock
.
Examples found in repository?
src/xml_deser.rs (line 63951)
63947 63948 63949 63950 63951 63952 63953 63954 63955 63956 63957 63958 63959 63960 63961 63962 63963 63964 63965 63966 63967 63968 63969 63970 63971
pub fn deser_structure_crate_model_ipv6_cidr_block(
decoder: &mut aws_smithy_xml::decode::ScopedDecoder,
) -> Result<crate::model::Ipv6CidrBlock, aws_smithy_xml::decode::XmlDecodeError> {
#[allow(unused_mut)]
let mut builder = crate::model::Ipv6CidrBlock::builder();
while let Some(mut tag) = decoder.next_tag() {
match tag.start_el() {
s if s.matches("ipv6CidrBlock") /* Ipv6CidrBlock com.amazonaws.ec2#Ipv6CidrBlock$Ipv6CidrBlock */ => {
let var_3145 =
Some(
Result::<std::string::String, aws_smithy_xml::decode::XmlDecodeError>::Ok(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
.into()
)
?
)
;
builder = builder.set_ipv6_cidr_block(var_3145);
}
,
_ => {}
}
}
Ok(builder.build())
}
Trait Implementations§
source§impl Clone for Ipv6CidrBlock
impl Clone for Ipv6CidrBlock
source§fn clone(&self) -> Ipv6CidrBlock
fn clone(&self) -> Ipv6CidrBlock
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read more