Struct aws_sdk_elasticache::model::SlotMigration
source · #[non_exhaustive]pub struct SlotMigration { /* private fields */ }
Expand description
Represents the progress of an online resharding operation.
Implementations§
source§impl SlotMigration
impl SlotMigration
sourcepub fn progress_percentage(&self) -> f64
pub fn progress_percentage(&self) -> f64
The percentage of the slot migration that is complete.
source§impl SlotMigration
impl SlotMigration
sourcepub fn builder() -> Builder
pub fn builder() -> Builder
Creates a new builder-style object to manufacture SlotMigration
.
Examples found in repository?
src/xml_deser.rs (line 11467)
11463 11464 11465 11466 11467 11468 11469 11470 11471 11472 11473 11474 11475 11476 11477 11478 11479 11480 11481 11482 11483 11484 11485 11486 11487 11488 11489
pub fn deser_structure_crate_model_slot_migration(
decoder: &mut aws_smithy_xml::decode::ScopedDecoder,
) -> Result<crate::model::SlotMigration, aws_smithy_xml::decode::XmlDecodeError> {
#[allow(unused_mut)]
let mut builder = crate::model::SlotMigration::builder();
while let Some(mut tag) = decoder.next_tag() {
match tag.start_el() {
s if s.matches("ProgressPercentage") /* ProgressPercentage com.amazonaws.elasticache#SlotMigration$ProgressPercentage */ => {
let var_491 =
Some(
{
<f64 as aws_smithy_types::primitive::Parse>::parse_smithy_primitive(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
.map_err(|_|aws_smithy_xml::decode::XmlDecodeError::custom("expected (double: `com.amazonaws.elasticache#Double`)"))
}
?
)
;
builder = builder.set_progress_percentage(var_491);
}
,
_ => {}
}
}
Ok(builder.build())
}
Trait Implementations§
source§impl Clone for SlotMigration
impl Clone for SlotMigration
source§fn clone(&self) -> SlotMigration
fn clone(&self) -> SlotMigration
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