Struct aws_sdk_s3::model::copy_part_result::Builder
source · pub struct Builder { /* private fields */ }
Expand description
A builder for CopyPartResult
.
Implementations§
source§impl Builder
impl Builder
sourcepub fn set_e_tag(self, input: Option<String>) -> Self
pub fn set_e_tag(self, input: Option<String>) -> Self
Entity tag of the object.
Examples found in repository?
5228 5229 5230 5231 5232 5233 5234 5235 5236 5237 5238 5239 5240 5241 5242 5243 5244 5245 5246 5247 5248 5249 5250 5251 5252 5253 5254 5255 5256 5257 5258 5259 5260 5261 5262 5263 5264 5265 5266 5267 5268 5269 5270 5271 5272 5273 5274 5275 5276 5277 5278 5279 5280 5281 5282 5283 5284 5285 5286 5287 5288 5289 5290 5291 5292 5293 5294 5295 5296 5297 5298 5299 5300 5301 5302 5303 5304 5305 5306 5307 5308 5309 5310 5311 5312 5313 5314 5315 5316 5317 5318
pub fn deser_structure_crate_model_copy_part_result(
decoder: &mut aws_smithy_xml::decode::ScopedDecoder,
) -> Result<crate::model::CopyPartResult, aws_smithy_xml::decode::XmlDecodeError> {
#[allow(unused_mut)]
let mut builder = crate::model::CopyPartResult::builder();
while let Some(mut tag) = decoder.next_tag() {
match tag.start_el() {
s if s.matches("ETag") /* ETag com.amazonaws.s3#CopyPartResult$ETag */ => {
let var_295 =
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_e_tag(var_295);
}
,
s if s.matches("LastModified") /* LastModified com.amazonaws.s3#CopyPartResult$LastModified */ => {
let var_296 =
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.s3#LastModified`)"))
?
)
;
builder = builder.set_last_modified(var_296);
}
,
s if s.matches("ChecksumCRC32") /* ChecksumCRC32 com.amazonaws.s3#CopyPartResult$ChecksumCRC32 */ => {
let var_297 =
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_checksum_crc32(var_297);
}
,
s if s.matches("ChecksumCRC32C") /* ChecksumCRC32C com.amazonaws.s3#CopyPartResult$ChecksumCRC32C */ => {
let var_298 =
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_checksum_crc32_c(var_298);
}
,
s if s.matches("ChecksumSHA1") /* ChecksumSHA1 com.amazonaws.s3#CopyPartResult$ChecksumSHA1 */ => {
let var_299 =
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_checksum_sha1(var_299);
}
,
s if s.matches("ChecksumSHA256") /* ChecksumSHA256 com.amazonaws.s3#CopyPartResult$ChecksumSHA256 */ => {
let var_300 =
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_checksum_sha256(var_300);
}
,
_ => {}
}
}
Ok(builder.build())
}
sourcepub fn last_modified(self, input: DateTime) -> Self
pub fn last_modified(self, input: DateTime) -> Self
Date and time at which the object was uploaded.
sourcepub fn set_last_modified(self, input: Option<DateTime>) -> Self
pub fn set_last_modified(self, input: Option<DateTime>) -> Self
Date and time at which the object was uploaded.
Examples found in repository?
5228 5229 5230 5231 5232 5233 5234 5235 5236 5237 5238 5239 5240 5241 5242 5243 5244 5245 5246 5247 5248 5249 5250 5251 5252 5253 5254 5255 5256 5257 5258 5259 5260 5261 5262 5263 5264 5265 5266 5267 5268 5269 5270 5271 5272 5273 5274 5275 5276 5277 5278 5279 5280 5281 5282 5283 5284 5285 5286 5287 5288 5289 5290 5291 5292 5293 5294 5295 5296 5297 5298 5299 5300 5301 5302 5303 5304 5305 5306 5307 5308 5309 5310 5311 5312 5313 5314 5315 5316 5317 5318
pub fn deser_structure_crate_model_copy_part_result(
decoder: &mut aws_smithy_xml::decode::ScopedDecoder,
) -> Result<crate::model::CopyPartResult, aws_smithy_xml::decode::XmlDecodeError> {
#[allow(unused_mut)]
let mut builder = crate::model::CopyPartResult::builder();
while let Some(mut tag) = decoder.next_tag() {
match tag.start_el() {
s if s.matches("ETag") /* ETag com.amazonaws.s3#CopyPartResult$ETag */ => {
let var_295 =
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_e_tag(var_295);
}
,
s if s.matches("LastModified") /* LastModified com.amazonaws.s3#CopyPartResult$LastModified */ => {
let var_296 =
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.s3#LastModified`)"))
?
)
;
builder = builder.set_last_modified(var_296);
}
,
s if s.matches("ChecksumCRC32") /* ChecksumCRC32 com.amazonaws.s3#CopyPartResult$ChecksumCRC32 */ => {
let var_297 =
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_checksum_crc32(var_297);
}
,
s if s.matches("ChecksumCRC32C") /* ChecksumCRC32C com.amazonaws.s3#CopyPartResult$ChecksumCRC32C */ => {
let var_298 =
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_checksum_crc32_c(var_298);
}
,
s if s.matches("ChecksumSHA1") /* ChecksumSHA1 com.amazonaws.s3#CopyPartResult$ChecksumSHA1 */ => {
let var_299 =
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_checksum_sha1(var_299);
}
,
s if s.matches("ChecksumSHA256") /* ChecksumSHA256 com.amazonaws.s3#CopyPartResult$ChecksumSHA256 */ => {
let var_300 =
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_checksum_sha256(var_300);
}
,
_ => {}
}
}
Ok(builder.build())
}
sourcepub fn checksum_crc32(self, input: impl Into<String>) -> Self
pub fn checksum_crc32(self, input: impl Into<String>) -> Self
The base64-encoded, 32-bit CRC32 checksum of the object. This will only be present if it was uploaded with the object. With multipart uploads, this may not be a checksum value of the object. For more information about how checksums are calculated with multipart uploads, see Checking object integrity in the Amazon S3 User Guide.
sourcepub fn set_checksum_crc32(self, input: Option<String>) -> Self
pub fn set_checksum_crc32(self, input: Option<String>) -> Self
The base64-encoded, 32-bit CRC32 checksum of the object. This will only be present if it was uploaded with the object. With multipart uploads, this may not be a checksum value of the object. For more information about how checksums are calculated with multipart uploads, see Checking object integrity in the Amazon S3 User Guide.
Examples found in repository?
5228 5229 5230 5231 5232 5233 5234 5235 5236 5237 5238 5239 5240 5241 5242 5243 5244 5245 5246 5247 5248 5249 5250 5251 5252 5253 5254 5255 5256 5257 5258 5259 5260 5261 5262 5263 5264 5265 5266 5267 5268 5269 5270 5271 5272 5273 5274 5275 5276 5277 5278 5279 5280 5281 5282 5283 5284 5285 5286 5287 5288 5289 5290 5291 5292 5293 5294 5295 5296 5297 5298 5299 5300 5301 5302 5303 5304 5305 5306 5307 5308 5309 5310 5311 5312 5313 5314 5315 5316 5317 5318
pub fn deser_structure_crate_model_copy_part_result(
decoder: &mut aws_smithy_xml::decode::ScopedDecoder,
) -> Result<crate::model::CopyPartResult, aws_smithy_xml::decode::XmlDecodeError> {
#[allow(unused_mut)]
let mut builder = crate::model::CopyPartResult::builder();
while let Some(mut tag) = decoder.next_tag() {
match tag.start_el() {
s if s.matches("ETag") /* ETag com.amazonaws.s3#CopyPartResult$ETag */ => {
let var_295 =
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_e_tag(var_295);
}
,
s if s.matches("LastModified") /* LastModified com.amazonaws.s3#CopyPartResult$LastModified */ => {
let var_296 =
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.s3#LastModified`)"))
?
)
;
builder = builder.set_last_modified(var_296);
}
,
s if s.matches("ChecksumCRC32") /* ChecksumCRC32 com.amazonaws.s3#CopyPartResult$ChecksumCRC32 */ => {
let var_297 =
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_checksum_crc32(var_297);
}
,
s if s.matches("ChecksumCRC32C") /* ChecksumCRC32C com.amazonaws.s3#CopyPartResult$ChecksumCRC32C */ => {
let var_298 =
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_checksum_crc32_c(var_298);
}
,
s if s.matches("ChecksumSHA1") /* ChecksumSHA1 com.amazonaws.s3#CopyPartResult$ChecksumSHA1 */ => {
let var_299 =
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_checksum_sha1(var_299);
}
,
s if s.matches("ChecksumSHA256") /* ChecksumSHA256 com.amazonaws.s3#CopyPartResult$ChecksumSHA256 */ => {
let var_300 =
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_checksum_sha256(var_300);
}
,
_ => {}
}
}
Ok(builder.build())
}
sourcepub fn checksum_crc32_c(self, input: impl Into<String>) -> Self
pub fn checksum_crc32_c(self, input: impl Into<String>) -> Self
The base64-encoded, 32-bit CRC32C checksum of the object. This will only be present if it was uploaded with the object. With multipart uploads, this may not be a checksum value of the object. For more information about how checksums are calculated with multipart uploads, see Checking object integrity in the Amazon S3 User Guide.
sourcepub fn set_checksum_crc32_c(self, input: Option<String>) -> Self
pub fn set_checksum_crc32_c(self, input: Option<String>) -> Self
The base64-encoded, 32-bit CRC32C checksum of the object. This will only be present if it was uploaded with the object. With multipart uploads, this may not be a checksum value of the object. For more information about how checksums are calculated with multipart uploads, see Checking object integrity in the Amazon S3 User Guide.
Examples found in repository?
5228 5229 5230 5231 5232 5233 5234 5235 5236 5237 5238 5239 5240 5241 5242 5243 5244 5245 5246 5247 5248 5249 5250 5251 5252 5253 5254 5255 5256 5257 5258 5259 5260 5261 5262 5263 5264 5265 5266 5267 5268 5269 5270 5271 5272 5273 5274 5275 5276 5277 5278 5279 5280 5281 5282 5283 5284 5285 5286 5287 5288 5289 5290 5291 5292 5293 5294 5295 5296 5297 5298 5299 5300 5301 5302 5303 5304 5305 5306 5307 5308 5309 5310 5311 5312 5313 5314 5315 5316 5317 5318
pub fn deser_structure_crate_model_copy_part_result(
decoder: &mut aws_smithy_xml::decode::ScopedDecoder,
) -> Result<crate::model::CopyPartResult, aws_smithy_xml::decode::XmlDecodeError> {
#[allow(unused_mut)]
let mut builder = crate::model::CopyPartResult::builder();
while let Some(mut tag) = decoder.next_tag() {
match tag.start_el() {
s if s.matches("ETag") /* ETag com.amazonaws.s3#CopyPartResult$ETag */ => {
let var_295 =
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_e_tag(var_295);
}
,
s if s.matches("LastModified") /* LastModified com.amazonaws.s3#CopyPartResult$LastModified */ => {
let var_296 =
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.s3#LastModified`)"))
?
)
;
builder = builder.set_last_modified(var_296);
}
,
s if s.matches("ChecksumCRC32") /* ChecksumCRC32 com.amazonaws.s3#CopyPartResult$ChecksumCRC32 */ => {
let var_297 =
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_checksum_crc32(var_297);
}
,
s if s.matches("ChecksumCRC32C") /* ChecksumCRC32C com.amazonaws.s3#CopyPartResult$ChecksumCRC32C */ => {
let var_298 =
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_checksum_crc32_c(var_298);
}
,
s if s.matches("ChecksumSHA1") /* ChecksumSHA1 com.amazonaws.s3#CopyPartResult$ChecksumSHA1 */ => {
let var_299 =
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_checksum_sha1(var_299);
}
,
s if s.matches("ChecksumSHA256") /* ChecksumSHA256 com.amazonaws.s3#CopyPartResult$ChecksumSHA256 */ => {
let var_300 =
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_checksum_sha256(var_300);
}
,
_ => {}
}
}
Ok(builder.build())
}
sourcepub fn checksum_sha1(self, input: impl Into<String>) -> Self
pub fn checksum_sha1(self, input: impl Into<String>) -> Self
The base64-encoded, 160-bit SHA-1 digest of the object. This will only be present if it was uploaded with the object. With multipart uploads, this may not be a checksum value of the object. For more information about how checksums are calculated with multipart uploads, see Checking object integrity in the Amazon S3 User Guide.
sourcepub fn set_checksum_sha1(self, input: Option<String>) -> Self
pub fn set_checksum_sha1(self, input: Option<String>) -> Self
The base64-encoded, 160-bit SHA-1 digest of the object. This will only be present if it was uploaded with the object. With multipart uploads, this may not be a checksum value of the object. For more information about how checksums are calculated with multipart uploads, see Checking object integrity in the Amazon S3 User Guide.
Examples found in repository?
5228 5229 5230 5231 5232 5233 5234 5235 5236 5237 5238 5239 5240 5241 5242 5243 5244 5245 5246 5247 5248 5249 5250 5251 5252 5253 5254 5255 5256 5257 5258 5259 5260 5261 5262 5263 5264 5265 5266 5267 5268 5269 5270 5271 5272 5273 5274 5275 5276 5277 5278 5279 5280 5281 5282 5283 5284 5285 5286 5287 5288 5289 5290 5291 5292 5293 5294 5295 5296 5297 5298 5299 5300 5301 5302 5303 5304 5305 5306 5307 5308 5309 5310 5311 5312 5313 5314 5315 5316 5317 5318
pub fn deser_structure_crate_model_copy_part_result(
decoder: &mut aws_smithy_xml::decode::ScopedDecoder,
) -> Result<crate::model::CopyPartResult, aws_smithy_xml::decode::XmlDecodeError> {
#[allow(unused_mut)]
let mut builder = crate::model::CopyPartResult::builder();
while let Some(mut tag) = decoder.next_tag() {
match tag.start_el() {
s if s.matches("ETag") /* ETag com.amazonaws.s3#CopyPartResult$ETag */ => {
let var_295 =
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_e_tag(var_295);
}
,
s if s.matches("LastModified") /* LastModified com.amazonaws.s3#CopyPartResult$LastModified */ => {
let var_296 =
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.s3#LastModified`)"))
?
)
;
builder = builder.set_last_modified(var_296);
}
,
s if s.matches("ChecksumCRC32") /* ChecksumCRC32 com.amazonaws.s3#CopyPartResult$ChecksumCRC32 */ => {
let var_297 =
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_checksum_crc32(var_297);
}
,
s if s.matches("ChecksumCRC32C") /* ChecksumCRC32C com.amazonaws.s3#CopyPartResult$ChecksumCRC32C */ => {
let var_298 =
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_checksum_crc32_c(var_298);
}
,
s if s.matches("ChecksumSHA1") /* ChecksumSHA1 com.amazonaws.s3#CopyPartResult$ChecksumSHA1 */ => {
let var_299 =
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_checksum_sha1(var_299);
}
,
s if s.matches("ChecksumSHA256") /* ChecksumSHA256 com.amazonaws.s3#CopyPartResult$ChecksumSHA256 */ => {
let var_300 =
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_checksum_sha256(var_300);
}
,
_ => {}
}
}
Ok(builder.build())
}
sourcepub fn checksum_sha256(self, input: impl Into<String>) -> Self
pub fn checksum_sha256(self, input: impl Into<String>) -> Self
The base64-encoded, 256-bit SHA-256 digest of the object. This will only be present if it was uploaded with the object. With multipart uploads, this may not be a checksum value of the object. For more information about how checksums are calculated with multipart uploads, see Checking object integrity in the Amazon S3 User Guide.
sourcepub fn set_checksum_sha256(self, input: Option<String>) -> Self
pub fn set_checksum_sha256(self, input: Option<String>) -> Self
The base64-encoded, 256-bit SHA-256 digest of the object. This will only be present if it was uploaded with the object. With multipart uploads, this may not be a checksum value of the object. For more information about how checksums are calculated with multipart uploads, see Checking object integrity in the Amazon S3 User Guide.
Examples found in repository?
5228 5229 5230 5231 5232 5233 5234 5235 5236 5237 5238 5239 5240 5241 5242 5243 5244 5245 5246 5247 5248 5249 5250 5251 5252 5253 5254 5255 5256 5257 5258 5259 5260 5261 5262 5263 5264 5265 5266 5267 5268 5269 5270 5271 5272 5273 5274 5275 5276 5277 5278 5279 5280 5281 5282 5283 5284 5285 5286 5287 5288 5289 5290 5291 5292 5293 5294 5295 5296 5297 5298 5299 5300 5301 5302 5303 5304 5305 5306 5307 5308 5309 5310 5311 5312 5313 5314 5315 5316 5317 5318
pub fn deser_structure_crate_model_copy_part_result(
decoder: &mut aws_smithy_xml::decode::ScopedDecoder,
) -> Result<crate::model::CopyPartResult, aws_smithy_xml::decode::XmlDecodeError> {
#[allow(unused_mut)]
let mut builder = crate::model::CopyPartResult::builder();
while let Some(mut tag) = decoder.next_tag() {
match tag.start_el() {
s if s.matches("ETag") /* ETag com.amazonaws.s3#CopyPartResult$ETag */ => {
let var_295 =
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_e_tag(var_295);
}
,
s if s.matches("LastModified") /* LastModified com.amazonaws.s3#CopyPartResult$LastModified */ => {
let var_296 =
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.s3#LastModified`)"))
?
)
;
builder = builder.set_last_modified(var_296);
}
,
s if s.matches("ChecksumCRC32") /* ChecksumCRC32 com.amazonaws.s3#CopyPartResult$ChecksumCRC32 */ => {
let var_297 =
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_checksum_crc32(var_297);
}
,
s if s.matches("ChecksumCRC32C") /* ChecksumCRC32C com.amazonaws.s3#CopyPartResult$ChecksumCRC32C */ => {
let var_298 =
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_checksum_crc32_c(var_298);
}
,
s if s.matches("ChecksumSHA1") /* ChecksumSHA1 com.amazonaws.s3#CopyPartResult$ChecksumSHA1 */ => {
let var_299 =
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_checksum_sha1(var_299);
}
,
s if s.matches("ChecksumSHA256") /* ChecksumSHA256 com.amazonaws.s3#CopyPartResult$ChecksumSHA256 */ => {
let var_300 =
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_checksum_sha256(var_300);
}
,
_ => {}
}
}
Ok(builder.build())
}
sourcepub fn build(self) -> CopyPartResult
pub fn build(self) -> CopyPartResult
Consumes the builder and constructs a CopyPartResult
.
Examples found in repository?
5228 5229 5230 5231 5232 5233 5234 5235 5236 5237 5238 5239 5240 5241 5242 5243 5244 5245 5246 5247 5248 5249 5250 5251 5252 5253 5254 5255 5256 5257 5258 5259 5260 5261 5262 5263 5264 5265 5266 5267 5268 5269 5270 5271 5272 5273 5274 5275 5276 5277 5278 5279 5280 5281 5282 5283 5284 5285 5286 5287 5288 5289 5290 5291 5292 5293 5294 5295 5296 5297 5298 5299 5300 5301 5302 5303 5304 5305 5306 5307 5308 5309 5310 5311 5312 5313 5314 5315 5316 5317 5318
pub fn deser_structure_crate_model_copy_part_result(
decoder: &mut aws_smithy_xml::decode::ScopedDecoder,
) -> Result<crate::model::CopyPartResult, aws_smithy_xml::decode::XmlDecodeError> {
#[allow(unused_mut)]
let mut builder = crate::model::CopyPartResult::builder();
while let Some(mut tag) = decoder.next_tag() {
match tag.start_el() {
s if s.matches("ETag") /* ETag com.amazonaws.s3#CopyPartResult$ETag */ => {
let var_295 =
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_e_tag(var_295);
}
,
s if s.matches("LastModified") /* LastModified com.amazonaws.s3#CopyPartResult$LastModified */ => {
let var_296 =
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.s3#LastModified`)"))
?
)
;
builder = builder.set_last_modified(var_296);
}
,
s if s.matches("ChecksumCRC32") /* ChecksumCRC32 com.amazonaws.s3#CopyPartResult$ChecksumCRC32 */ => {
let var_297 =
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_checksum_crc32(var_297);
}
,
s if s.matches("ChecksumCRC32C") /* ChecksumCRC32C com.amazonaws.s3#CopyPartResult$ChecksumCRC32C */ => {
let var_298 =
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_checksum_crc32_c(var_298);
}
,
s if s.matches("ChecksumSHA1") /* ChecksumSHA1 com.amazonaws.s3#CopyPartResult$ChecksumSHA1 */ => {
let var_299 =
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_checksum_sha1(var_299);
}
,
s if s.matches("ChecksumSHA256") /* ChecksumSHA256 com.amazonaws.s3#CopyPartResult$ChecksumSHA256 */ => {
let var_300 =
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_checksum_sha256(var_300);
}
,
_ => {}
}
}
Ok(builder.build())
}