Struct aws_sdk_mturk::model::assignment::Builder
source · [−]#[non_exhaustive]pub struct Builder { /* private fields */ }
Expand description
A builder for Assignment
Implementations
sourceimpl Builder
impl Builder
sourcepub fn assignment_id(self, input: impl Into<String>) -> Self
pub fn assignment_id(self, input: impl Into<String>) -> Self
A unique identifier for the assignment.
sourcepub fn set_assignment_id(self, input: Option<String>) -> Self
pub fn set_assignment_id(self, input: Option<String>) -> Self
A unique identifier for the assignment.
sourcepub fn worker_id(self, input: impl Into<String>) -> Self
pub fn worker_id(self, input: impl Into<String>) -> Self
The ID of the Worker who accepted the HIT.
sourcepub fn set_worker_id(self, input: Option<String>) -> Self
pub fn set_worker_id(self, input: Option<String>) -> Self
The ID of the Worker who accepted the HIT.
sourcepub fn set_hit_id(self, input: Option<String>) -> Self
pub fn set_hit_id(self, input: Option<String>) -> Self
The ID of the HIT.
sourcepub fn assignment_status(self, input: AssignmentStatus) -> Self
pub fn assignment_status(self, input: AssignmentStatus) -> Self
The status of the assignment.
sourcepub fn set_assignment_status(self, input: Option<AssignmentStatus>) -> Self
pub fn set_assignment_status(self, input: Option<AssignmentStatus>) -> Self
The status of the assignment.
sourcepub fn auto_approval_time(self, input: DateTime) -> Self
pub fn auto_approval_time(self, input: DateTime) -> Self
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 set_auto_approval_time(self, input: Option<DateTime>) -> Self
pub fn set_auto_approval_time(self, input: Option<DateTime>) -> Self
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, input: DateTime) -> Self
pub fn accept_time(self, input: DateTime) -> Self
The date and time the Worker accepted the assignment.
sourcepub fn set_accept_time(self, input: Option<DateTime>) -> Self
pub fn set_accept_time(self, input: Option<DateTime>) -> Self
The date and time the Worker accepted the assignment.
sourcepub fn submit_time(self, input: DateTime) -> Self
pub fn submit_time(self, input: DateTime) -> Self
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 set_submit_time(self, input: Option<DateTime>) -> Self
pub fn set_submit_time(self, input: Option<DateTime>) -> Self
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, input: DateTime) -> Self
pub fn approval_time(self, input: DateTime) -> Self
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 set_approval_time(self, input: Option<DateTime>) -> Self
pub fn set_approval_time(self, input: Option<DateTime>) -> Self
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, input: DateTime) -> Self
pub fn rejection_time(self, input: DateTime) -> Self
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 set_rejection_time(self, input: Option<DateTime>) -> Self
pub fn set_rejection_time(self, input: Option<DateTime>) -> Self
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, input: DateTime) -> Self
pub fn deadline(self, input: DateTime) -> Self
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 set_deadline(self, input: Option<DateTime>) -> Self
pub fn set_deadline(self, input: Option<DateTime>) -> Self
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, input: impl Into<String>) -> Self
pub fn answer(self, input: impl Into<String>) -> Self
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 set_answer(self, input: Option<String>) -> Self
pub fn set_answer(self, input: Option<String>) -> Self
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, input: impl Into<String>) -> Self
pub fn requester_feedback(self, input: impl Into<String>) -> Self
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.
sourcepub fn set_requester_feedback(self, input: Option<String>) -> Self
pub fn set_requester_feedback(self, input: Option<String>) -> Self
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.
sourcepub fn build(self) -> Assignment
pub fn build(self) -> Assignment
Consumes the builder and constructs a Assignment
Trait Implementations
impl StructuralPartialEq for Builder
Auto Trait Implementations
impl RefUnwindSafe for Builder
impl Send for Builder
impl Sync for Builder
impl Unpin for Builder
impl UnwindSafe for Builder
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