Struct aws_sdk_s3::model::GetObjectAttributesParts
source · #[non_exhaustive]pub struct GetObjectAttributesParts { /* private fields */ }
Expand description
A collection of parts associated with a multipart upload.
Implementations§
source§impl GetObjectAttributesParts
impl GetObjectAttributesParts
sourcepub fn total_parts_count(&self) -> i32
pub fn total_parts_count(&self) -> i32
The total number of parts.
sourcepub fn part_number_marker(&self) -> Option<&str>
pub fn part_number_marker(&self) -> Option<&str>
The marker for the current part.
sourcepub fn next_part_number_marker(&self) -> Option<&str>
pub fn next_part_number_marker(&self) -> Option<&str>
When a list is truncated, this element specifies the last part in the list, as well as the value to use for the PartNumberMarker
request parameter in a subsequent request.
sourcepub fn is_truncated(&self) -> bool
pub fn is_truncated(&self) -> bool
Indicates whether the returned list of parts is truncated. A value of true
indicates that the list was truncated. A list can be truncated if the number of parts exceeds the limit returned in the MaxParts
element.
sourcepub fn parts(&self) -> Option<&[ObjectPart]>
pub fn parts(&self) -> Option<&[ObjectPart]>
A container for elements related to a particular part. A response can contain zero or more Parts
elements.
source§impl GetObjectAttributesParts
impl GetObjectAttributesParts
sourcepub fn builder() -> Builder
pub fn builder() -> Builder
Creates a new builder-style object to manufacture GetObjectAttributesParts
.
Examples found in repository?
src/xml_deser.rs (line 3808)
3804 3805 3806 3807 3808 3809 3810 3811 3812 3813 3814 3815 3816 3817 3818 3819 3820 3821 3822 3823 3824 3825 3826 3827 3828 3829 3830 3831 3832 3833 3834 3835 3836 3837 3838 3839 3840 3841 3842 3843 3844 3845 3846 3847 3848 3849 3850 3851 3852 3853 3854 3855 3856 3857 3858 3859 3860 3861 3862 3863 3864 3865 3866 3867 3868 3869 3870 3871 3872 3873 3874 3875 3876 3877 3878 3879 3880 3881 3882 3883 3884 3885 3886 3887 3888 3889 3890 3891 3892 3893 3894 3895 3896 3897 3898 3899 3900 3901 3902 3903
pub fn deser_structure_crate_model_get_object_attributes_parts(
decoder: &mut aws_smithy_xml::decode::ScopedDecoder,
) -> Result<crate::model::GetObjectAttributesParts, aws_smithy_xml::decode::XmlDecodeError> {
#[allow(unused_mut)]
let mut builder = crate::model::GetObjectAttributesParts::builder();
while let Some(mut tag) = decoder.next_tag() {
match tag.start_el() {
s if s.matches("PartsCount") /* TotalPartsCount com.amazonaws.s3#GetObjectAttributesParts$TotalPartsCount */ => {
let var_207 =
Some(
{
<i32 as aws_smithy_types::primitive::Parse>::parse_smithy_primitive(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
.map_err(|_|aws_smithy_xml::decode::XmlDecodeError::custom("expected (integer: `com.amazonaws.s3#PartsCount`)"))
}
?
)
;
builder = builder.set_total_parts_count(var_207);
}
,
s if s.matches("PartNumberMarker") /* PartNumberMarker com.amazonaws.s3#GetObjectAttributesParts$PartNumberMarker */ => {
let var_208 =
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_part_number_marker(var_208);
}
,
s if s.matches("NextPartNumberMarker") /* NextPartNumberMarker com.amazonaws.s3#GetObjectAttributesParts$NextPartNumberMarker */ => {
let var_209 =
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_next_part_number_marker(var_209);
}
,
s if s.matches("MaxParts") /* MaxParts com.amazonaws.s3#GetObjectAttributesParts$MaxParts */ => {
let var_210 =
Some(
{
<i32 as aws_smithy_types::primitive::Parse>::parse_smithy_primitive(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
.map_err(|_|aws_smithy_xml::decode::XmlDecodeError::custom("expected (integer: `com.amazonaws.s3#MaxParts`)"))
}
?
)
;
builder = builder.set_max_parts(var_210);
}
,
s if s.matches("IsTruncated") /* IsTruncated com.amazonaws.s3#GetObjectAttributesParts$IsTruncated */ => {
let var_211 =
Some(
{
<bool as aws_smithy_types::primitive::Parse>::parse_smithy_primitive(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
.map_err(|_|aws_smithy_xml::decode::XmlDecodeError::custom("expected (boolean: `com.amazonaws.s3#IsTruncated`)"))
}
?
)
;
builder = builder.set_is_truncated(var_211);
}
,
s if s.matches("Part") /* Parts com.amazonaws.s3#GetObjectAttributesParts$Parts */ => {
let var_212 =
Some(
Result::<std::vec::Vec<crate::model::ObjectPart>, aws_smithy_xml::decode::XmlDecodeError>::Ok({
let mut list_213 = builder.parts.take().unwrap_or_default();
list_213.push(
crate::xml_deser::deser_structure_crate_model_object_part(&mut tag)
?
);
list_213
})
?
)
;
builder = builder.set_parts(var_212);
}
,
_ => {}
}
}
Ok(builder.build())
}
Trait Implementations§
source§impl Clone for GetObjectAttributesParts
impl Clone for GetObjectAttributesParts
source§fn clone(&self) -> GetObjectAttributesParts
fn clone(&self) -> GetObjectAttributesParts
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