#[non_exhaustive]pub struct DisableFastSnapshotRestoreStateErrorItem { /* private fields */ }
Expand description
Contains information about an error that occurred when disabling fast snapshot restores.
Implementations§
source§impl DisableFastSnapshotRestoreStateErrorItem
impl DisableFastSnapshotRestoreStateErrorItem
sourcepub fn availability_zone(&self) -> Option<&str>
pub fn availability_zone(&self) -> Option<&str>
The Availability Zone.
sourcepub fn error(&self) -> Option<&DisableFastSnapshotRestoreStateError>
pub fn error(&self) -> Option<&DisableFastSnapshotRestoreStateError>
The error.
source§impl DisableFastSnapshotRestoreStateErrorItem
impl DisableFastSnapshotRestoreStateErrorItem
sourcepub fn builder() -> Builder
pub fn builder() -> Builder
Creates a new builder-style object to manufacture DisableFastSnapshotRestoreStateErrorItem
.
Examples found in repository?
src/xml_deser.rs (line 66423)
66416 66417 66418 66419 66420 66421 66422 66423 66424 66425 66426 66427 66428 66429 66430 66431 66432 66433 66434 66435 66436 66437 66438 66439 66440 66441 66442 66443 66444 66445 66446 66447 66448 66449 66450 66451 66452 66453
pub fn deser_structure_crate_model_disable_fast_snapshot_restore_state_error_item(
decoder: &mut aws_smithy_xml::decode::ScopedDecoder,
) -> Result<
crate::model::DisableFastSnapshotRestoreStateErrorItem,
aws_smithy_xml::decode::XmlDecodeError,
> {
#[allow(unused_mut)]
let mut builder = crate::model::DisableFastSnapshotRestoreStateErrorItem::builder();
while let Some(mut tag) = decoder.next_tag() {
match tag.start_el() {
s if s.matches("availabilityZone") /* AvailabilityZone com.amazonaws.ec2#DisableFastSnapshotRestoreStateErrorItem$AvailabilityZone */ => {
let var_3265 =
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_availability_zone(var_3265);
}
,
s if s.matches("error") /* Error com.amazonaws.ec2#DisableFastSnapshotRestoreStateErrorItem$Error */ => {
let var_3266 =
Some(
crate::xml_deser::deser_structure_crate_model_disable_fast_snapshot_restore_state_error(&mut tag)
?
)
;
builder = builder.set_error(var_3266);
}
,
_ => {}
}
}
Ok(builder.build())
}
Trait Implementations§
source§impl Clone for DisableFastSnapshotRestoreStateErrorItem
impl Clone for DisableFastSnapshotRestoreStateErrorItem
source§fn clone(&self) -> DisableFastSnapshotRestoreStateErrorItem
fn clone(&self) -> DisableFastSnapshotRestoreStateErrorItem
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