#[non_exhaustive]pub struct EnableFastSnapshotRestoreStateError { /* private fields */ }
Expand description
Describes an error that occurred when enabling fast snapshot restores.
Implementations§
source§impl EnableFastSnapshotRestoreStateError
impl EnableFastSnapshotRestoreStateError
sourcepub fn builder() -> Builder
pub fn builder() -> Builder
Creates a new builder-style object to manufacture EnableFastSnapshotRestoreStateError
.
Examples found in repository?
src/xml_deser.rs (line 70045)
70040 70041 70042 70043 70044 70045 70046 70047 70048 70049 70050 70051 70052 70053 70054 70055 70056 70057 70058 70059 70060 70061 70062 70063 70064 70065 70066 70067 70068 70069 70070 70071 70072 70073 70074 70075 70076 70077 70078
pub fn deser_structure_crate_model_enable_fast_snapshot_restore_state_error(
decoder: &mut aws_smithy_xml::decode::ScopedDecoder,
) -> Result<crate::model::EnableFastSnapshotRestoreStateError, aws_smithy_xml::decode::XmlDecodeError>
{
#[allow(unused_mut)]
let mut builder = crate::model::EnableFastSnapshotRestoreStateError::builder();
while let Some(mut tag) = decoder.next_tag() {
match tag.start_el() {
s if s.matches("code") /* Code com.amazonaws.ec2#EnableFastSnapshotRestoreStateError$Code */ => {
let var_3466 =
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_3466);
}
,
s if s.matches("message") /* Message com.amazonaws.ec2#EnableFastSnapshotRestoreStateError$Message */ => {
let var_3467 =
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_3467);
}
,
_ => {}
}
}
Ok(builder.build())
}
Trait Implementations§
source§impl Clone for EnableFastSnapshotRestoreStateError
impl Clone for EnableFastSnapshotRestoreStateError
source§fn clone(&self) -> EnableFastSnapshotRestoreStateError
fn clone(&self) -> EnableFastSnapshotRestoreStateError
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