Struct aws_sdk_s3control::model::JobListDescriptor
source · #[non_exhaustive]pub struct JobListDescriptor { /* private fields */ }
Expand description
Contains the configuration and status information for a single job retrieved as part of a job list.
Implementations§
source§impl JobListDescriptor
impl JobListDescriptor
sourcepub fn description(&self) -> Option<&str>
pub fn description(&self) -> Option<&str>
The user-specified description that was included in the specified job's Create Job
request.
sourcepub fn operation(&self) -> Option<&OperationName>
pub fn operation(&self) -> Option<&OperationName>
The operation that the specified job is configured to run on every object listed in the manifest.
sourcepub fn creation_time(&self) -> Option<&DateTime>
pub fn creation_time(&self) -> Option<&DateTime>
A timestamp indicating when the specified job was created.
sourcepub fn termination_date(&self) -> Option<&DateTime>
pub fn termination_date(&self) -> Option<&DateTime>
A timestamp indicating when the specified job terminated. A job's termination date is the date and time when it succeeded, failed, or was canceled.
sourcepub fn progress_summary(&self) -> Option<&JobProgressSummary>
pub fn progress_summary(&self) -> Option<&JobProgressSummary>
Describes the total number of tasks that the specified job has run, the number of tasks that succeeded, and the number of tasks that failed.
source§impl JobListDescriptor
impl JobListDescriptor
sourcepub fn builder() -> Builder
pub fn builder() -> Builder
Creates a new builder-style object to manufacture JobListDescriptor
.
Examples found in repository?
src/xml_deser.rs (line 4001)
3997 3998 3999 4000 4001 4002 4003 4004 4005 4006 4007 4008 4009 4010 4011 4012 4013 4014 4015 4016 4017 4018 4019 4020 4021 4022 4023 4024 4025 4026 4027 4028 4029 4030 4031 4032 4033 4034 4035 4036 4037 4038 4039 4040 4041 4042 4043 4044 4045 4046 4047 4048 4049 4050 4051 4052 4053 4054 4055 4056 4057 4058 4059 4060 4061 4062 4063 4064 4065 4066 4067 4068 4069 4070 4071 4072 4073 4074 4075 4076 4077 4078 4079 4080 4081 4082 4083 4084 4085 4086 4087 4088 4089 4090 4091 4092 4093 4094 4095 4096 4097 4098 4099 4100 4101 4102 4103 4104 4105 4106 4107 4108 4109 4110 4111 4112 4113 4114 4115
pub fn deser_structure_crate_model_job_list_descriptor(
decoder: &mut aws_smithy_xml::decode::ScopedDecoder,
) -> Result<crate::model::JobListDescriptor, aws_smithy_xml::decode::XmlDecodeError> {
#[allow(unused_mut)]
let mut builder = crate::model::JobListDescriptor::builder();
while let Some(mut tag) = decoder.next_tag() {
match tag.start_el() {
s if s.matches("JobId") /* JobId com.amazonaws.s3control#JobListDescriptor$JobId */ => {
let var_175 =
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_job_id(var_175);
}
,
s if s.matches("Description") /* Description com.amazonaws.s3control#JobListDescriptor$Description */ => {
let var_176 =
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_description(var_176);
}
,
s if s.matches("Operation") /* Operation com.amazonaws.s3control#JobListDescriptor$Operation */ => {
let var_177 =
Some(
Result::<crate::model::OperationName, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::OperationName::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_operation(var_177);
}
,
s if s.matches("Priority") /* Priority com.amazonaws.s3control#JobListDescriptor$Priority */ => {
let var_178 =
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.s3control#JobPriority`)"))
}
?
)
;
builder = builder.set_priority(var_178);
}
,
s if s.matches("Status") /* Status com.amazonaws.s3control#JobListDescriptor$Status */ => {
let var_179 =
Some(
Result::<crate::model::JobStatus, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::JobStatus::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_status(var_179);
}
,
s if s.matches("CreationTime") /* CreationTime com.amazonaws.s3control#JobListDescriptor$CreationTime */ => {
let var_180 =
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#JobCreationTime`)"))
?
)
;
builder = builder.set_creation_time(var_180);
}
,
s if s.matches("TerminationDate") /* TerminationDate com.amazonaws.s3control#JobListDescriptor$TerminationDate */ => {
let var_181 =
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#JobTerminationDate`)"))
?
)
;
builder = builder.set_termination_date(var_181);
}
,
s if s.matches("ProgressSummary") /* ProgressSummary com.amazonaws.s3control#JobListDescriptor$ProgressSummary */ => {
let var_182 =
Some(
crate::xml_deser::deser_structure_crate_model_job_progress_summary(&mut tag)
?
)
;
builder = builder.set_progress_summary(var_182);
}
,
_ => {}
}
}
Ok(builder.build())
}
Trait Implementations§
source§impl Clone for JobListDescriptor
impl Clone for JobListDescriptor
source§fn clone(&self) -> JobListDescriptor
fn clone(&self) -> JobListDescriptor
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