Struct aws_sdk_s3control::model::AsyncOperation
source · #[non_exhaustive]pub struct AsyncOperation { /* private fields */ }
Expand description
A container for the information about an asynchronous operation.
Implementations§
source§impl AsyncOperation
impl AsyncOperation
sourcepub fn creation_time(&self) -> Option<&DateTime>
pub fn creation_time(&self) -> Option<&DateTime>
The time that the request was sent to the service.
sourcepub fn operation(&self) -> Option<&AsyncOperationName>
pub fn operation(&self) -> Option<&AsyncOperationName>
The specific operation for the asynchronous request.
sourcepub fn request_token_arn(&self) -> Option<&str>
pub fn request_token_arn(&self) -> Option<&str>
The request token associated with the request.
sourcepub fn request_parameters(&self) -> Option<&AsyncRequestParameters>
pub fn request_parameters(&self) -> Option<&AsyncRequestParameters>
The parameters associated with the request.
sourcepub fn request_status(&self) -> Option<&str>
pub fn request_status(&self) -> Option<&str>
The current status of the request.
sourcepub fn response_details(&self) -> Option<&AsyncResponseDetails>
pub fn response_details(&self) -> Option<&AsyncResponseDetails>
The details of the response.
source§impl AsyncOperation
impl AsyncOperation
sourcepub fn builder() -> Builder
pub fn builder() -> Builder
Creates a new builder-style object to manufacture AsyncOperation
.
Examples found in repository?
src/xml_deser.rs (line 2342)
2338 2339 2340 2341 2342 2343 2344 2345 2346 2347 2348 2349 2350 2351 2352 2353 2354 2355 2356 2357 2358 2359 2360 2361 2362 2363 2364 2365 2366 2367 2368 2369 2370 2371 2372 2373 2374 2375 2376 2377 2378 2379 2380 2381 2382 2383 2384 2385 2386 2387 2388 2389 2390 2391 2392 2393 2394 2395 2396 2397 2398 2399 2400 2401 2402 2403 2404 2405 2406 2407 2408 2409 2410 2411 2412 2413 2414 2415 2416 2417 2418 2419 2420 2421 2422 2423
pub fn deser_structure_crate_model_async_operation(
decoder: &mut aws_smithy_xml::decode::ScopedDecoder,
) -> Result<crate::model::AsyncOperation, aws_smithy_xml::decode::XmlDecodeError> {
#[allow(unused_mut)]
let mut builder = crate::model::AsyncOperation::builder();
while let Some(mut tag) = decoder.next_tag() {
match tag.start_el() {
s if s.matches("CreationTime") /* CreationTime com.amazonaws.s3control#AsyncOperation$CreationTime */ => {
let var_90 =
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.s3control#AsyncCreationTimestamp`)"))
?
)
;
builder = builder.set_creation_time(var_90);
}
,
s if s.matches("Operation") /* Operation com.amazonaws.s3control#AsyncOperation$Operation */ => {
let var_91 =
Some(
Result::<crate::model::AsyncOperationName, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::AsyncOperationName::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_operation(var_91);
}
,
s if s.matches("RequestTokenARN") /* RequestTokenARN com.amazonaws.s3control#AsyncOperation$RequestTokenARN */ => {
let var_92 =
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_request_token_arn(var_92);
}
,
s if s.matches("RequestParameters") /* RequestParameters com.amazonaws.s3control#AsyncOperation$RequestParameters */ => {
let var_93 =
Some(
crate::xml_deser::deser_structure_crate_model_async_request_parameters(&mut tag)
?
)
;
builder = builder.set_request_parameters(var_93);
}
,
s if s.matches("RequestStatus") /* RequestStatus com.amazonaws.s3control#AsyncOperation$RequestStatus */ => {
let var_94 =
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_request_status(var_94);
}
,
s if s.matches("ResponseDetails") /* ResponseDetails com.amazonaws.s3control#AsyncOperation$ResponseDetails */ => {
let var_95 =
Some(
crate::xml_deser::deser_structure_crate_model_async_response_details(&mut tag)
?
)
;
builder = builder.set_response_details(var_95);
}
,
_ => {}
}
}
Ok(builder.build())
}
Trait Implementations§
source§impl Clone for AsyncOperation
impl Clone for AsyncOperation
source§fn clone(&self) -> AsyncOperation
fn clone(&self) -> AsyncOperation
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