#[non_exhaustive]pub struct EnableFastSnapshotRestoreErrorItem { /* private fields */ }
Expand description
Contains information about the errors that occurred when enabling fast snapshot restores.
Implementations§
source§impl EnableFastSnapshotRestoreErrorItem
impl EnableFastSnapshotRestoreErrorItem
sourcepub fn snapshot_id(&self) -> Option<&str>
pub fn snapshot_id(&self) -> Option<&str>
The ID of the snapshot.
sourcepub fn fast_snapshot_restore_state_errors(
&self
) -> Option<&[EnableFastSnapshotRestoreStateErrorItem]>
pub fn fast_snapshot_restore_state_errors(
&self
) -> Option<&[EnableFastSnapshotRestoreStateErrorItem]>
The errors.
source§impl EnableFastSnapshotRestoreErrorItem
impl EnableFastSnapshotRestoreErrorItem
sourcepub fn builder() -> Builder
pub fn builder() -> Builder
Creates a new builder-style object to manufacture EnableFastSnapshotRestoreErrorItem
.
Examples found in repository?
src/xml_deser.rs (line 52010)
52005 52006 52007 52008 52009 52010 52011 52012 52013 52014 52015 52016 52017 52018 52019 52020 52021 52022 52023 52024 52025 52026 52027 52028 52029 52030 52031 52032 52033 52034 52035 52036 52037 52038 52039 52040
pub fn deser_structure_crate_model_enable_fast_snapshot_restore_error_item(
decoder: &mut aws_smithy_xml::decode::ScopedDecoder,
) -> Result<crate::model::EnableFastSnapshotRestoreErrorItem, aws_smithy_xml::decode::XmlDecodeError>
{
#[allow(unused_mut)]
let mut builder = crate::model::EnableFastSnapshotRestoreErrorItem::builder();
while let Some(mut tag) = decoder.next_tag() {
match tag.start_el() {
s if s.matches("snapshotId") /* SnapshotId com.amazonaws.ec2#EnableFastSnapshotRestoreErrorItem$SnapshotId */ => {
let var_2477 =
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_snapshot_id(var_2477);
}
,
s if s.matches("fastSnapshotRestoreStateErrorSet") /* FastSnapshotRestoreStateErrors com.amazonaws.ec2#EnableFastSnapshotRestoreErrorItem$FastSnapshotRestoreStateErrors */ => {
let var_2478 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_enable_fast_snapshot_restore_state_error_set(&mut tag)
?
)
;
builder = builder.set_fast_snapshot_restore_state_errors(var_2478);
}
,
_ => {}
}
}
Ok(builder.build())
}
Trait Implementations§
source§impl Clone for EnableFastSnapshotRestoreErrorItem
impl Clone for EnableFastSnapshotRestoreErrorItem
source§fn clone(&self) -> EnableFastSnapshotRestoreErrorItem
fn clone(&self) -> EnableFastSnapshotRestoreErrorItem
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