Struct aws_sdk_s3control::model::AsyncErrorDetails
source · #[non_exhaustive]pub struct AsyncErrorDetails { /* private fields */ }
Expand description
Error details for the failed asynchronous operation.
Implementations§
source§impl AsyncErrorDetails
impl AsyncErrorDetails
source§impl AsyncErrorDetails
impl AsyncErrorDetails
sourcepub fn builder() -> Builder
pub fn builder() -> Builder
Creates a new builder-style object to manufacture AsyncErrorDetails
.
Examples found in repository?
src/xml_deser.rs (line 5177)
5173 5174 5175 5176 5177 5178 5179 5180 5181 5182 5183 5184 5185 5186 5187 5188 5189 5190 5191 5192 5193 5194 5195 5196 5197 5198 5199 5200 5201 5202 5203 5204 5205 5206 5207 5208 5209 5210 5211 5212 5213 5214 5215 5216 5217 5218 5219 5220 5221 5222 5223 5224 5225 5226 5227 5228 5229 5230 5231 5232 5233 5234 5235 5236
pub fn deser_structure_crate_model_async_error_details(
decoder: &mut aws_smithy_xml::decode::ScopedDecoder,
) -> Result<crate::model::AsyncErrorDetails, aws_smithy_xml::decode::XmlDecodeError> {
#[allow(unused_mut)]
let mut builder = crate::model::AsyncErrorDetails::builder();
while let Some(mut tag) = decoder.next_tag() {
match tag.start_el() {
s if s.matches("Code") /* Code com.amazonaws.s3control#AsyncErrorDetails$Code */ => {
let var_243 =
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_243);
}
,
s if s.matches("Message") /* Message com.amazonaws.s3control#AsyncErrorDetails$Message */ => {
let var_244 =
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_244);
}
,
s if s.matches("Resource") /* Resource com.amazonaws.s3control#AsyncErrorDetails$Resource */ => {
let var_245 =
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_resource(var_245);
}
,
s if s.matches("RequestId") /* RequestId com.amazonaws.s3control#AsyncErrorDetails$RequestId */ => {
let var_246 =
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_id(var_246);
}
,
_ => {}
}
}
Ok(builder.build())
}
Trait Implementations§
source§impl Clone for AsyncErrorDetails
impl Clone for AsyncErrorDetails
source§fn clone(&self) -> AsyncErrorDetails
fn clone(&self) -> AsyncErrorDetails
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