#[non_exhaustive]
pub struct DescribeFastSnapshotRestoreSuccessItem { /* private fields */ }
Expand description

Describes fast snapshot restores for a snapshot.

Implementations§

The ID of the snapshot.

The Availability Zone.

The state of fast snapshot restores.

The reason for the state transition. The possible values are as follows:

  • Client.UserInitiated - The state successfully transitioned to enabling or disabling.

  • Client.UserInitiated - Lifecycle state transition - The state successfully transitioned to optimizing, enabled, or disabled.

The ID of the Amazon Web Services account that enabled fast snapshot restores on the snapshot.

The Amazon Web Services owner alias that enabled fast snapshot restores on the snapshot. This is intended for future use.

The time at which fast snapshot restores entered the enabling state.

The time at which fast snapshot restores entered the optimizing state.

The time at which fast snapshot restores entered the enabled state.

The time at which fast snapshot restores entered the disabling state.

The time at which fast snapshot restores entered the disabled state.

Creates a new builder-style object to manufacture DescribeFastSnapshotRestoreSuccessItem.

Examples found in repository?
src/xml_deser.rs (line 44546)
44539
44540
44541
44542
44543
44544
44545
44546
44547
44548
44549
44550
44551
44552
44553
44554
44555
44556
44557
44558
44559
44560
44561
44562
44563
44564
44565
44566
44567
44568
44569
44570
44571
44572
44573
44574
44575
44576
44577
44578
44579
44580
44581
44582
44583
44584
44585
44586
44587
44588
44589
44590
44591
44592
44593
44594
44595
44596
44597
44598
44599
44600
44601
44602
44603
44604
44605
44606
44607
44608
44609
44610
44611
44612
44613
44614
44615
44616
44617
44618
44619
44620
44621
44622
44623
44624
44625
44626
44627
44628
44629
44630
44631
44632
44633
44634
44635
44636
44637
44638
44639
44640
44641
44642
44643
44644
44645
44646
44647
44648
44649
44650
44651
44652
44653
44654
44655
44656
44657
44658
44659
44660
44661
44662
44663
44664
44665
44666
44667
44668
44669
44670
44671
44672
44673
44674
44675
44676
44677
44678
44679
44680
44681
44682
44683
44684
44685
44686
44687
44688
44689
44690
44691
44692
44693
44694
44695
44696
44697
44698
44699
44700
44701
44702
pub fn deser_structure_crate_model_describe_fast_snapshot_restore_success_item(
    decoder: &mut aws_smithy_xml::decode::ScopedDecoder,
) -> Result<
    crate::model::DescribeFastSnapshotRestoreSuccessItem,
    aws_smithy_xml::decode::XmlDecodeError,
> {
    #[allow(unused_mut)]
    let mut builder = crate::model::DescribeFastSnapshotRestoreSuccessItem::builder();
    while let Some(mut tag) = decoder.next_tag() {
        match tag.start_el() {
            s if s.matches("snapshotId") /* SnapshotId com.amazonaws.ec2#DescribeFastSnapshotRestoreSuccessItem$SnapshotId */ =>  {
                let var_1960 =
                    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_1960);
            }
            ,
            s if s.matches("availabilityZone") /* AvailabilityZone com.amazonaws.ec2#DescribeFastSnapshotRestoreSuccessItem$AvailabilityZone */ =>  {
                let var_1961 =
                    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_1961);
            }
            ,
            s if s.matches("state") /* State com.amazonaws.ec2#DescribeFastSnapshotRestoreSuccessItem$State */ =>  {
                let var_1962 =
                    Some(
                        Result::<crate::model::FastSnapshotRestoreStateCode, aws_smithy_xml::decode::XmlDecodeError>::Ok(
                            crate::model::FastSnapshotRestoreStateCode::from(
                                aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
                            )
                        )
                        ?
                    )
                ;
                builder = builder.set_state(var_1962);
            }
            ,
            s if s.matches("stateTransitionReason") /* StateTransitionReason com.amazonaws.ec2#DescribeFastSnapshotRestoreSuccessItem$StateTransitionReason */ =>  {
                let var_1963 =
                    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_state_transition_reason(var_1963);
            }
            ,
            s if s.matches("ownerId") /* OwnerId com.amazonaws.ec2#DescribeFastSnapshotRestoreSuccessItem$OwnerId */ =>  {
                let var_1964 =
                    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_owner_id(var_1964);
            }
            ,
            s if s.matches("ownerAlias") /* OwnerAlias com.amazonaws.ec2#DescribeFastSnapshotRestoreSuccessItem$OwnerAlias */ =>  {
                let var_1965 =
                    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_owner_alias(var_1965);
            }
            ,
            s if s.matches("enablingTime") /* EnablingTime com.amazonaws.ec2#DescribeFastSnapshotRestoreSuccessItem$EnablingTime */ =>  {
                let var_1966 =
                    Some(
                        aws_smithy_types::DateTime::from_str(
                            aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
                            , aws_smithy_types::date_time::Format::DateTime
                        )
                        .map_err(|_|aws_smithy_xml::decode::XmlDecodeError::custom("expected (timestamp: `com.amazonaws.ec2#MillisecondDateTime`)"))
                        ?
                    )
                ;
                builder = builder.set_enabling_time(var_1966);
            }
            ,
            s if s.matches("optimizingTime") /* OptimizingTime com.amazonaws.ec2#DescribeFastSnapshotRestoreSuccessItem$OptimizingTime */ =>  {
                let var_1967 =
                    Some(
                        aws_smithy_types::DateTime::from_str(
                            aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
                            , aws_smithy_types::date_time::Format::DateTime
                        )
                        .map_err(|_|aws_smithy_xml::decode::XmlDecodeError::custom("expected (timestamp: `com.amazonaws.ec2#MillisecondDateTime`)"))
                        ?
                    )
                ;
                builder = builder.set_optimizing_time(var_1967);
            }
            ,
            s if s.matches("enabledTime") /* EnabledTime com.amazonaws.ec2#DescribeFastSnapshotRestoreSuccessItem$EnabledTime */ =>  {
                let var_1968 =
                    Some(
                        aws_smithy_types::DateTime::from_str(
                            aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
                            , aws_smithy_types::date_time::Format::DateTime
                        )
                        .map_err(|_|aws_smithy_xml::decode::XmlDecodeError::custom("expected (timestamp: `com.amazonaws.ec2#MillisecondDateTime`)"))
                        ?
                    )
                ;
                builder = builder.set_enabled_time(var_1968);
            }
            ,
            s if s.matches("disablingTime") /* DisablingTime com.amazonaws.ec2#DescribeFastSnapshotRestoreSuccessItem$DisablingTime */ =>  {
                let var_1969 =
                    Some(
                        aws_smithy_types::DateTime::from_str(
                            aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
                            , aws_smithy_types::date_time::Format::DateTime
                        )
                        .map_err(|_|aws_smithy_xml::decode::XmlDecodeError::custom("expected (timestamp: `com.amazonaws.ec2#MillisecondDateTime`)"))
                        ?
                    )
                ;
                builder = builder.set_disabling_time(var_1969);
            }
            ,
            s if s.matches("disabledTime") /* DisabledTime com.amazonaws.ec2#DescribeFastSnapshotRestoreSuccessItem$DisabledTime */ =>  {
                let var_1970 =
                    Some(
                        aws_smithy_types::DateTime::from_str(
                            aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
                            , aws_smithy_types::date_time::Format::DateTime
                        )
                        .map_err(|_|aws_smithy_xml::decode::XmlDecodeError::custom("expected (timestamp: `com.amazonaws.ec2#MillisecondDateTime`)"))
                        ?
                    )
                ;
                builder = builder.set_disabled_time(var_1970);
            }
            ,
            _ => {}
        }
    }
    Ok(builder.build())
}

Trait Implementations§

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Formats the value using the given formatter. Read more
This method tests for self and other values to be equal, and is used by ==. Read more
This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason. Read more

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Should always be Self
The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.
Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more