Struct aws_sdk_ec2::model::PciId
source · #[non_exhaustive]pub struct PciId { /* private fields */ }
Expand description
Describes the data that identifies an Amazon FPGA image (AFI) on the PCI bus.
Implementations§
source§impl PciId
impl PciId
sourcepub fn builder() -> Builder
pub fn builder() -> Builder
Creates a new builder-style object to manufacture PciId
.
Examples found in repository?
src/xml_deser.rs (line 58963)
58959 58960 58961 58962 58963 58964 58965 58966 58967 58968 58969 58970 58971 58972 58973 58974 58975 58976 58977 58978 58979 58980 58981 58982 58983 58984 58985 58986 58987 58988 58989 58990 58991 58992 58993 58994 58995 58996 58997 58998 58999 59000 59001 59002 59003 59004 59005 59006 59007 59008 59009 59010 59011 59012 59013 59014 59015 59016 59017 59018 59019 59020 59021 59022
pub fn deser_structure_crate_model_pci_id(
decoder: &mut aws_smithy_xml::decode::ScopedDecoder,
) -> Result<crate::model::PciId, aws_smithy_xml::decode::XmlDecodeError> {
#[allow(unused_mut)]
let mut builder = crate::model::PciId::builder();
while let Some(mut tag) = decoder.next_tag() {
match tag.start_el() {
s if s.matches("DeviceId") /* DeviceId com.amazonaws.ec2#PciId$DeviceId */ => {
let var_2872 =
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_device_id(var_2872);
}
,
s if s.matches("VendorId") /* VendorId com.amazonaws.ec2#PciId$VendorId */ => {
let var_2873 =
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_vendor_id(var_2873);
}
,
s if s.matches("SubsystemId") /* SubsystemId com.amazonaws.ec2#PciId$SubsystemId */ => {
let var_2874 =
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_subsystem_id(var_2874);
}
,
s if s.matches("SubsystemVendorId") /* SubsystemVendorId com.amazonaws.ec2#PciId$SubsystemVendorId */ => {
let var_2875 =
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_subsystem_vendor_id(var_2875);
}
,
_ => {}
}
}
Ok(builder.build())
}