Struct aws_sdk_ec2::model::AssignedPrivateIpAddress
source · #[non_exhaustive]pub struct AssignedPrivateIpAddress { /* private fields */ }
Expand description
Describes the private IP addresses assigned to a network interface.
Implementations§
source§impl AssignedPrivateIpAddress
impl AssignedPrivateIpAddress
sourcepub fn private_ip_address(&self) -> Option<&str>
pub fn private_ip_address(&self) -> Option<&str>
The private IP address assigned to the network interface.
source§impl AssignedPrivateIpAddress
impl AssignedPrivateIpAddress
sourcepub fn builder() -> Builder
pub fn builder() -> Builder
Creates a new builder-style object to manufacture AssignedPrivateIpAddress
.
Examples found in repository?
src/xml_deser.rs (line 39233)
39229 39230 39231 39232 39233 39234 39235 39236 39237 39238 39239 39240 39241 39242 39243 39244 39245 39246 39247 39248 39249 39250 39251 39252 39253
pub fn deser_structure_crate_model_assigned_private_ip_address(
decoder: &mut aws_smithy_xml::decode::ScopedDecoder,
) -> Result<crate::model::AssignedPrivateIpAddress, aws_smithy_xml::decode::XmlDecodeError> {
#[allow(unused_mut)]
let mut builder = crate::model::AssignedPrivateIpAddress::builder();
while let Some(mut tag) = decoder.next_tag() {
match tag.start_el() {
s if s.matches("privateIpAddress") /* PrivateIpAddress com.amazonaws.ec2#AssignedPrivateIpAddress$PrivateIpAddress */ => {
let var_1661 =
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_private_ip_address(var_1661);
}
,
_ => {}
}
}
Ok(builder.build())
}
Trait Implementations§
source§impl Clone for AssignedPrivateIpAddress
impl Clone for AssignedPrivateIpAddress
source§fn clone(&self) -> AssignedPrivateIpAddress
fn clone(&self) -> AssignedPrivateIpAddress
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