Struct aws_sdk_mturk::model::Assignment
source · [−]#[non_exhaustive]pub struct Assignment {
pub assignment_id: Option<String>,
pub worker_id: Option<String>,
pub hit_id: Option<String>,
pub assignment_status: Option<AssignmentStatus>,
pub auto_approval_time: Option<DateTime>,
pub accept_time: Option<DateTime>,
pub submit_time: Option<DateTime>,
pub approval_time: Option<DateTime>,
pub rejection_time: Option<DateTime>,
pub deadline: Option<DateTime>,
pub answer: Option<String>,
pub requester_feedback: Option<String>,
}
Expand description
The Assignment data structure represents a single assignment of a HIT to a Worker. The assignment tracks the Worker's efforts to complete the HIT, and contains the results for later retrieval.
Fields (Non-exhaustive)
This struct is marked as non-exhaustive
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.assignment_id: Option<String>
A unique identifier for the assignment.
worker_id: Option<String>
The ID of the Worker who accepted the HIT.
hit_id: Option<String>
The ID of the HIT.
assignment_status: Option<AssignmentStatus>
The status of the assignment.
auto_approval_time: Option<DateTime>
If results have been submitted, AutoApprovalTime is the date and time the results of the assignment results are considered Approved automatically if they have not already been explicitly approved or rejected by the Requester. This value is derived from the auto-approval delay specified by the Requester in the HIT. This value is omitted from the assignment if the Worker has not yet submitted results.
accept_time: Option<DateTime>
The date and time the Worker accepted the assignment.
submit_time: Option<DateTime>
If the Worker has submitted results, SubmitTime is the date and time the assignment was submitted. This value is omitted from the assignment if the Worker has not yet submitted results.
approval_time: Option<DateTime>
If the Worker has submitted results and the Requester has approved the results, ApprovalTime is the date and time the Requester approved the results. This value is omitted from the assignment if the Requester has not yet approved the results.
rejection_time: Option<DateTime>
If the Worker has submitted results and the Requester has rejected the results, RejectionTime is the date and time the Requester rejected the results.
deadline: Option<DateTime>
The date and time of the deadline for the assignment. This value is derived from the deadline specification for the HIT and the date and time the Worker accepted the HIT.
answer: Option<String>
The Worker's answers submitted for the HIT contained in a QuestionFormAnswers document, if the Worker provides an answer. If the Worker does not provide any answers, Answer may contain a QuestionFormAnswers document, or Answer may be empty.
requester_feedback: Option<String>
The feedback string included with the call to the ApproveAssignment operation or the RejectAssignment operation, if the Requester approved or rejected the assignment and specified feedback.
Implementations
sourceimpl Assignment
impl Assignment
sourcepub fn assignment_id(&self) -> Option<&str>
pub fn assignment_id(&self) -> Option<&str>
A unique identifier for the assignment.
sourcepub fn assignment_status(&self) -> Option<&AssignmentStatus>
pub fn assignment_status(&self) -> Option<&AssignmentStatus>
The status of the assignment.
sourcepub fn auto_approval_time(&self) -> Option<&DateTime>
pub fn auto_approval_time(&self) -> Option<&DateTime>
If results have been submitted, AutoApprovalTime is the date and time the results of the assignment results are considered Approved automatically if they have not already been explicitly approved or rejected by the Requester. This value is derived from the auto-approval delay specified by the Requester in the HIT. This value is omitted from the assignment if the Worker has not yet submitted results.
sourcepub fn accept_time(&self) -> Option<&DateTime>
pub fn accept_time(&self) -> Option<&DateTime>
The date and time the Worker accepted the assignment.
sourcepub fn submit_time(&self) -> Option<&DateTime>
pub fn submit_time(&self) -> Option<&DateTime>
If the Worker has submitted results, SubmitTime is the date and time the assignment was submitted. This value is omitted from the assignment if the Worker has not yet submitted results.
sourcepub fn approval_time(&self) -> Option<&DateTime>
pub fn approval_time(&self) -> Option<&DateTime>
If the Worker has submitted results and the Requester has approved the results, ApprovalTime is the date and time the Requester approved the results. This value is omitted from the assignment if the Requester has not yet approved the results.
sourcepub fn rejection_time(&self) -> Option<&DateTime>
pub fn rejection_time(&self) -> Option<&DateTime>
If the Worker has submitted results and the Requester has rejected the results, RejectionTime is the date and time the Requester rejected the results.
sourcepub fn deadline(&self) -> Option<&DateTime>
pub fn deadline(&self) -> Option<&DateTime>
The date and time of the deadline for the assignment. This value is derived from the deadline specification for the HIT and the date and time the Worker accepted the HIT.
sourcepub fn answer(&self) -> Option<&str>
pub fn answer(&self) -> Option<&str>
The Worker's answers submitted for the HIT contained in a QuestionFormAnswers document, if the Worker provides an answer. If the Worker does not provide any answers, Answer may contain a QuestionFormAnswers document, or Answer may be empty.
sourcepub fn requester_feedback(&self) -> Option<&str>
pub fn requester_feedback(&self) -> Option<&str>
The feedback string included with the call to the ApproveAssignment operation or the RejectAssignment operation, if the Requester approved or rejected the assignment and specified feedback.
sourceimpl Assignment
impl Assignment
sourcepub fn builder() -> Builder
pub fn builder() -> Builder
Creates a new builder-style object to manufacture Assignment
Trait Implementations
sourceimpl Clone for Assignment
impl Clone for Assignment
sourcefn clone(&self) -> Assignment
fn clone(&self) -> Assignment
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for Assignment
impl Debug for Assignment
sourceimpl PartialEq<Assignment> for Assignment
impl PartialEq<Assignment> for Assignment
sourcefn eq(&self, other: &Assignment) -> bool
fn eq(&self, other: &Assignment) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &Assignment) -> bool
fn ne(&self, other: &Assignment) -> bool
This method tests for !=
.
impl StructuralPartialEq for Assignment
Auto Trait Implementations
impl RefUnwindSafe for Assignment
impl Send for Assignment
impl Sync for Assignment
impl Unpin for Assignment
impl UnwindSafe for Assignment
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more