Struct aws_sdk_ec2::model::Ipv6PrefixSpecificationRequest
source · #[non_exhaustive]pub struct Ipv6PrefixSpecificationRequest { /* private fields */ }
Expand description
Describes the IPv4 prefix option for a network interface.
Implementations§
source§impl Ipv6PrefixSpecificationRequest
impl Ipv6PrefixSpecificationRequest
sourcepub fn ipv6_prefix(&self) -> Option<&str>
pub fn ipv6_prefix(&self) -> Option<&str>
The IPv6 prefix.
source§impl Ipv6PrefixSpecificationRequest
impl Ipv6PrefixSpecificationRequest
sourcepub fn builder() -> Builder
pub fn builder() -> Builder
Creates a new builder-style object to manufacture Ipv6PrefixSpecificationRequest
.
Examples found in repository?
src/xml_deser.rs (line 71317)
71313 71314 71315 71316 71317 71318 71319 71320 71321 71322 71323 71324 71325 71326 71327 71328 71329 71330 71331 71332 71333 71334 71335 71336 71337
pub fn deser_structure_crate_model_ipv6_prefix_specification_request(
decoder: &mut aws_smithy_xml::decode::ScopedDecoder,
) -> Result<crate::model::Ipv6PrefixSpecificationRequest, aws_smithy_xml::decode::XmlDecodeError> {
#[allow(unused_mut)]
let mut builder = crate::model::Ipv6PrefixSpecificationRequest::builder();
while let Some(mut tag) = decoder.next_tag() {
match tag.start_el() {
s if s.matches("Ipv6Prefix") /* Ipv6Prefix com.amazonaws.ec2#Ipv6PrefixSpecificationRequest$Ipv6Prefix */ => {
let var_3517 =
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_prefix(var_3517);
}
,
_ => {}
}
}
Ok(builder.build())
}
Trait Implementations§
source§impl Clone for Ipv6PrefixSpecificationRequest
impl Clone for Ipv6PrefixSpecificationRequest
source§fn clone(&self) -> Ipv6PrefixSpecificationRequest
fn clone(&self) -> Ipv6PrefixSpecificationRequest
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