Struct aws_sdk_ec2::model::CidrBlock
source · #[non_exhaustive]pub struct CidrBlock { /* private fields */ }
Expand description
Describes an IPv4 CIDR block.
Implementations§
source§impl CidrBlock
impl CidrBlock
sourcepub fn builder() -> Builder
pub fn builder() -> Builder
Creates a new builder-style object to manufacture CidrBlock
.
Examples found in repository?
src/xml_deser.rs (line 63977)
63973 63974 63975 63976 63977 63978 63979 63980 63981 63982 63983 63984 63985 63986 63987 63988 63989 63990 63991 63992 63993 63994 63995 63996 63997
pub fn deser_structure_crate_model_cidr_block(
decoder: &mut aws_smithy_xml::decode::ScopedDecoder,
) -> Result<crate::model::CidrBlock, aws_smithy_xml::decode::XmlDecodeError> {
#[allow(unused_mut)]
let mut builder = crate::model::CidrBlock::builder();
while let Some(mut tag) = decoder.next_tag() {
match tag.start_el() {
s if s.matches("cidrBlock") /* CidrBlock com.amazonaws.ec2#CidrBlock$CidrBlock */ => {
let var_3146 =
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_cidr_block(var_3146);
}
,
_ => {}
}
}
Ok(builder.build())
}