#[non_exhaustive]pub struct CancelCapacityReservationFleetError { /* private fields */ }
Expand description
Describes a Capacity Reservation Fleet cancellation error.
Implementations§
source§impl CancelCapacityReservationFleetError
impl CancelCapacityReservationFleetError
sourcepub fn builder() -> Builder
pub fn builder() -> Builder
Creates a new builder-style object to manufacture CancelCapacityReservationFleetError
.
Examples found in repository?
src/xml_deser.rs (line 56525)
56520 56521 56522 56523 56524 56525 56526 56527 56528 56529 56530 56531 56532 56533 56534 56535 56536 56537 56538 56539 56540 56541 56542 56543 56544 56545 56546 56547 56548 56549 56550 56551 56552 56553 56554 56555 56556 56557 56558
pub fn deser_structure_crate_model_cancel_capacity_reservation_fleet_error(
decoder: &mut aws_smithy_xml::decode::ScopedDecoder,
) -> Result<crate::model::CancelCapacityReservationFleetError, aws_smithy_xml::decode::XmlDecodeError>
{
#[allow(unused_mut)]
let mut builder = crate::model::CancelCapacityReservationFleetError::builder();
while let Some(mut tag) = decoder.next_tag() {
match tag.start_el() {
s if s.matches("code") /* Code com.amazonaws.ec2#CancelCapacityReservationFleetError$Code */ => {
let var_2747 =
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_code(var_2747);
}
,
s if s.matches("message") /* Message com.amazonaws.ec2#CancelCapacityReservationFleetError$Message */ => {
let var_2748 =
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_message(var_2748);
}
,
_ => {}
}
}
Ok(builder.build())
}
Trait Implementations§
source§impl Clone for CancelCapacityReservationFleetError
impl Clone for CancelCapacityReservationFleetError
source§fn clone(&self) -> CancelCapacityReservationFleetError
fn clone(&self) -> CancelCapacityReservationFleetError
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