Struct aws_sdk_ec2::model::HistoryRecord
source · #[non_exhaustive]pub struct HistoryRecord { /* private fields */ }
Expand description
Describes an event in the history of the Spot Fleet request.
Implementations§
source§impl HistoryRecord
impl HistoryRecord
sourcepub fn event_information(&self) -> Option<&EventInformation>
pub fn event_information(&self) -> Option<&EventInformation>
Information about the event.
sourcepub fn event_type(&self) -> Option<&EventType>
pub fn event_type(&self) -> Option<&EventType>
The event type.
-
error
- An error with the Spot Fleet request. -
fleetRequestChange
- A change in the status or configuration of the Spot Fleet request. -
instanceChange
- An instance was launched or terminated. -
Information
- An informational event.
source§impl HistoryRecord
impl HistoryRecord
sourcepub fn builder() -> Builder
pub fn builder() -> Builder
Creates a new builder-style object to manufacture HistoryRecord
.
Examples found in repository?
src/xml_deser.rs (line 49932)
49928 49929 49930 49931 49932 49933 49934 49935 49936 49937 49938 49939 49940 49941 49942 49943 49944 49945 49946 49947 49948 49949 49950 49951 49952 49953 49954 49955 49956 49957 49958 49959 49960 49961 49962 49963 49964 49965 49966 49967 49968 49969 49970 49971 49972 49973 49974 49975 49976 49977
pub fn deser_structure_crate_model_history_record(
decoder: &mut aws_smithy_xml::decode::ScopedDecoder,
) -> Result<crate::model::HistoryRecord, aws_smithy_xml::decode::XmlDecodeError> {
#[allow(unused_mut)]
let mut builder = crate::model::HistoryRecord::builder();
while let Some(mut tag) = decoder.next_tag() {
match tag.start_el() {
s if s.matches("eventInformation") /* EventInformation com.amazonaws.ec2#HistoryRecord$EventInformation */ => {
let var_2334 =
Some(
crate::xml_deser::deser_structure_crate_model_event_information(&mut tag)
?
)
;
builder = builder.set_event_information(var_2334);
}
,
s if s.matches("eventType") /* EventType com.amazonaws.ec2#HistoryRecord$EventType */ => {
let var_2335 =
Some(
Result::<crate::model::EventType, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::EventType::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_event_type(var_2335);
}
,
s if s.matches("timestamp") /* Timestamp com.amazonaws.ec2#HistoryRecord$Timestamp */ => {
let var_2336 =
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#DateTime`)"))
?
)
;
builder = builder.set_timestamp(var_2336);
}
,
_ => {}
}
}
Ok(builder.build())
}
Trait Implementations§
source§impl Clone for HistoryRecord
impl Clone for HistoryRecord
source§fn clone(&self) -> HistoryRecord
fn clone(&self) -> HistoryRecord
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