#[non_exhaustive]pub struct InstanceTypeInfoFromInstanceRequirements { /* private fields */ }
Expand description
The list of instance types with the specified instance attributes.
Implementations§
source§impl InstanceTypeInfoFromInstanceRequirements
impl InstanceTypeInfoFromInstanceRequirements
sourcepub fn instance_type(&self) -> Option<&str>
pub fn instance_type(&self) -> Option<&str>
The matching instance type.
source§impl InstanceTypeInfoFromInstanceRequirements
impl InstanceTypeInfoFromInstanceRequirements
sourcepub fn builder() -> Builder
pub fn builder() -> Builder
Creates a new builder-style object to manufacture InstanceTypeInfoFromInstanceRequirements
.
Examples found in repository?
src/xml_deser.rs (line 52416)
52409 52410 52411 52412 52413 52414 52415 52416 52417 52418 52419 52420 52421 52422 52423 52424 52425 52426 52427 52428 52429 52430 52431 52432 52433 52434 52435 52436
pub fn deser_structure_crate_model_instance_type_info_from_instance_requirements(
decoder: &mut aws_smithy_xml::decode::ScopedDecoder,
) -> Result<
crate::model::InstanceTypeInfoFromInstanceRequirements,
aws_smithy_xml::decode::XmlDecodeError,
> {
#[allow(unused_mut)]
let mut builder = crate::model::InstanceTypeInfoFromInstanceRequirements::builder();
while let Some(mut tag) = decoder.next_tag() {
match tag.start_el() {
s if s.matches("instanceType") /* InstanceType com.amazonaws.ec2#InstanceTypeInfoFromInstanceRequirements$InstanceType */ => {
let var_2501 =
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_instance_type(var_2501);
}
,
_ => {}
}
}
Ok(builder.build())
}
Trait Implementations§
source§impl Clone for InstanceTypeInfoFromInstanceRequirements
impl Clone for InstanceTypeInfoFromInstanceRequirements
source§fn clone(&self) -> InstanceTypeInfoFromInstanceRequirements
fn clone(&self) -> InstanceTypeInfoFromInstanceRequirements
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