Struct aws_sdk_s3::model::MultipartUpload
source · #[non_exhaustive]pub struct MultipartUpload { /* private fields */ }
Expand description
Container for the MultipartUpload
for the Amazon S3 object.
Implementations§
source§impl MultipartUpload
impl MultipartUpload
sourcepub fn key(&self) -> Option<&str>
pub fn key(&self) -> Option<&str>
Key of the object for which the multipart upload was initiated.
sourcepub fn initiated(&self) -> Option<&DateTime>
pub fn initiated(&self) -> Option<&DateTime>
Date and time at which the multipart upload was initiated.
sourcepub fn storage_class(&self) -> Option<&StorageClass>
pub fn storage_class(&self) -> Option<&StorageClass>
The class of storage used to store the object.
sourcepub fn owner(&self) -> Option<&Owner>
pub fn owner(&self) -> Option<&Owner>
Specifies the owner of the object that is part of the multipart upload.
sourcepub fn checksum_algorithm(&self) -> Option<&ChecksumAlgorithm>
pub fn checksum_algorithm(&self) -> Option<&ChecksumAlgorithm>
The algorithm that was used to create a checksum of the object.
source§impl MultipartUpload
impl MultipartUpload
sourcepub fn builder() -> Builder
pub fn builder() -> Builder
Creates a new builder-style object to manufacture MultipartUpload
.
Examples found in repository?
src/xml_deser.rs (line 4198)
4194 4195 4196 4197 4198 4199 4200 4201 4202 4203 4204 4205 4206 4207 4208 4209 4210 4211 4212 4213 4214 4215 4216 4217 4218 4219 4220 4221 4222 4223 4224 4225 4226 4227 4228 4229 4230 4231 4232 4233 4234 4235 4236 4237 4238 4239 4240 4241 4242 4243 4244 4245 4246 4247 4248 4249 4250 4251 4252 4253 4254 4255 4256 4257 4258 4259 4260 4261 4262 4263 4264 4265 4266 4267 4268 4269 4270 4271 4272 4273 4274 4275 4276 4277 4278 4279 4280 4281 4282 4283 4284 4285 4286 4287 4288 4289 4290 4291 4292 4293
pub fn deser_structure_crate_model_multipart_upload(
decoder: &mut aws_smithy_xml::decode::ScopedDecoder,
) -> Result<crate::model::MultipartUpload, aws_smithy_xml::decode::XmlDecodeError> {
#[allow(unused_mut)]
let mut builder = crate::model::MultipartUpload::builder();
while let Some(mut tag) = decoder.next_tag() {
match tag.start_el() {
s if s.matches("UploadId") /* UploadId com.amazonaws.s3#MultipartUpload$UploadId */ => {
let var_232 =
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_upload_id(var_232);
}
,
s if s.matches("Key") /* Key com.amazonaws.s3#MultipartUpload$Key */ => {
let var_233 =
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_key(var_233);
}
,
s if s.matches("Initiated") /* Initiated com.amazonaws.s3#MultipartUpload$Initiated */ => {
let var_234 =
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#Initiated`)"))
?
)
;
builder = builder.set_initiated(var_234);
}
,
s if s.matches("StorageClass") /* StorageClass com.amazonaws.s3#MultipartUpload$StorageClass */ => {
let var_235 =
Some(
Result::<crate::model::StorageClass, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::StorageClass::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_storage_class(var_235);
}
,
s if s.matches("Owner") /* Owner com.amazonaws.s3#MultipartUpload$Owner */ => {
let var_236 =
Some(
crate::xml_deser::deser_structure_crate_model_owner(&mut tag)
?
)
;
builder = builder.set_owner(var_236);
}
,
s if s.matches("Initiator") /* Initiator com.amazonaws.s3#MultipartUpload$Initiator */ => {
let var_237 =
Some(
crate::xml_deser::deser_structure_crate_model_initiator(&mut tag)
?
)
;
builder = builder.set_initiator(var_237);
}
,
s if s.matches("ChecksumAlgorithm") /* ChecksumAlgorithm com.amazonaws.s3#MultipartUpload$ChecksumAlgorithm */ => {
let var_238 =
Some(
Result::<crate::model::ChecksumAlgorithm, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::ChecksumAlgorithm::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_checksum_algorithm(var_238);
}
,
_ => {}
}
}
Ok(builder.build())
}
Trait Implementations§
source§impl Clone for MultipartUpload
impl Clone for MultipartUpload
source§fn clone(&self) -> MultipartUpload
fn clone(&self) -> MultipartUpload
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