#[non_exhaustive]pub struct Builder { /* private fields */ }
Expand description
A builder for Hit
Implementations
sourceimpl Builder
impl Builder
sourcepub fn set_hit_id(self, input: Option<String>) -> Self
pub fn set_hit_id(self, input: Option<String>) -> Self
A unique identifier for the HIT.
sourcepub fn hit_type_id(self, input: impl Into<String>) -> Self
pub fn hit_type_id(self, input: impl Into<String>) -> Self
The ID of the HIT type of this HIT
sourcepub fn set_hit_type_id(self, input: Option<String>) -> Self
pub fn set_hit_type_id(self, input: Option<String>) -> Self
The ID of the HIT type of this HIT
sourcepub fn hit_group_id(self, input: impl Into<String>) -> Self
pub fn hit_group_id(self, input: impl Into<String>) -> Self
The ID of the HIT Group of this HIT.
sourcepub fn set_hit_group_id(self, input: Option<String>) -> Self
pub fn set_hit_group_id(self, input: Option<String>) -> Self
The ID of the HIT Group of this HIT.
sourcepub fn hit_layout_id(self, input: impl Into<String>) -> Self
pub fn hit_layout_id(self, input: impl Into<String>) -> Self
The ID of the HIT Layout of this HIT.
sourcepub fn set_hit_layout_id(self, input: Option<String>) -> Self
pub fn set_hit_layout_id(self, input: Option<String>) -> Self
The ID of the HIT Layout of this HIT.
sourcepub fn creation_time(self, input: DateTime) -> Self
pub fn creation_time(self, input: DateTime) -> Self
The date and time the HIT was created.
sourcepub fn set_creation_time(self, input: Option<DateTime>) -> Self
pub fn set_creation_time(self, input: Option<DateTime>) -> Self
The date and time the HIT was created.
sourcepub fn description(self, input: impl Into<String>) -> Self
pub fn description(self, input: impl Into<String>) -> Self
A general description of the HIT.
sourcepub fn set_description(self, input: Option<String>) -> Self
pub fn set_description(self, input: Option<String>) -> Self
A general description of the HIT.
sourcepub fn question(self, input: impl Into<String>) -> Self
pub fn question(self, input: impl Into<String>) -> Self
The data the Worker completing the HIT uses produce the results. This is either either a QuestionForm, HTMLQuestion or an ExternalQuestion data structure.
sourcepub fn set_question(self, input: Option<String>) -> Self
pub fn set_question(self, input: Option<String>) -> Self
The data the Worker completing the HIT uses produce the results. This is either either a QuestionForm, HTMLQuestion or an ExternalQuestion data structure.
sourcepub fn keywords(self, input: impl Into<String>) -> Self
pub fn keywords(self, input: impl Into<String>) -> Self
One or more words or phrases that describe the HIT, separated by commas. Search terms similar to the keywords of a HIT are more likely to have the HIT in the search results.
sourcepub fn set_keywords(self, input: Option<String>) -> Self
pub fn set_keywords(self, input: Option<String>) -> Self
One or more words or phrases that describe the HIT, separated by commas. Search terms similar to the keywords of a HIT are more likely to have the HIT in the search results.
sourcepub fn hit_status(self, input: HitStatus) -> Self
pub fn hit_status(self, input: HitStatus) -> Self
The status of the HIT and its assignments. Valid Values are Assignable | Unassignable | Reviewable | Reviewing | Disposed.
sourcepub fn set_hit_status(self, input: Option<HitStatus>) -> Self
pub fn set_hit_status(self, input: Option<HitStatus>) -> Self
The status of the HIT and its assignments. Valid Values are Assignable | Unassignable | Reviewable | Reviewing | Disposed.
sourcepub fn max_assignments(self, input: i32) -> Self
pub fn max_assignments(self, input: i32) -> Self
The number of times the HIT can be accepted and completed before the HIT becomes unavailable.
sourcepub fn set_max_assignments(self, input: Option<i32>) -> Self
pub fn set_max_assignments(self, input: Option<i32>) -> Self
The number of times the HIT can be accepted and completed before the HIT becomes unavailable.
sourcepub fn set_reward(self, input: Option<String>) -> Self
pub fn set_reward(self, input: Option<String>) -> Self
A string representing a currency amount.
sourcepub fn auto_approval_delay_in_seconds(self, input: i64) -> Self
pub fn auto_approval_delay_in_seconds(self, input: i64) -> Self
The amount of time, in seconds, after the Worker submits an assignment for the HIT that the results are automatically approved by Amazon Mechanical Turk. This is the amount of time the Requester has to reject an assignment submitted by a Worker before the assignment is auto-approved and the Worker is paid.
sourcepub fn set_auto_approval_delay_in_seconds(self, input: Option<i64>) -> Self
pub fn set_auto_approval_delay_in_seconds(self, input: Option<i64>) -> Self
The amount of time, in seconds, after the Worker submits an assignment for the HIT that the results are automatically approved by Amazon Mechanical Turk. This is the amount of time the Requester has to reject an assignment submitted by a Worker before the assignment is auto-approved and the Worker is paid.
sourcepub fn expiration(self, input: DateTime) -> Self
pub fn expiration(self, input: DateTime) -> Self
The date and time the HIT expires.
sourcepub fn set_expiration(self, input: Option<DateTime>) -> Self
pub fn set_expiration(self, input: Option<DateTime>) -> Self
The date and time the HIT expires.
sourcepub fn assignment_duration_in_seconds(self, input: i64) -> Self
pub fn assignment_duration_in_seconds(self, input: i64) -> Self
The length of time, in seconds, that a Worker has to complete the HIT after accepting it.
sourcepub fn set_assignment_duration_in_seconds(self, input: Option<i64>) -> Self
pub fn set_assignment_duration_in_seconds(self, input: Option<i64>) -> Self
The length of time, in seconds, that a Worker has to complete the HIT after accepting it.
sourcepub fn requester_annotation(self, input: impl Into<String>) -> Self
pub fn requester_annotation(self, input: impl Into<String>) -> Self
An arbitrary data field the Requester who created the HIT can use. This field is visible only to the creator of the HIT.
sourcepub fn set_requester_annotation(self, input: Option<String>) -> Self
pub fn set_requester_annotation(self, input: Option<String>) -> Self
An arbitrary data field the Requester who created the HIT can use. This field is visible only to the creator of the HIT.
sourcepub fn qualification_requirements(self, input: QualificationRequirement) -> Self
pub fn qualification_requirements(self, input: QualificationRequirement) -> Self
Appends an item to qualification_requirements
.
To override the contents of this collection use set_qualification_requirements
.
Conditions that a Worker's Qualifications must meet in order to accept the HIT. A HIT can have between zero and ten Qualification requirements. All requirements must be met in order for a Worker to accept the HIT. Additionally, other actions can be restricted using the ActionsGuarded
field on each QualificationRequirement
structure.
sourcepub fn set_qualification_requirements(
self,
input: Option<Vec<QualificationRequirement>>
) -> Self
pub fn set_qualification_requirements(
self,
input: Option<Vec<QualificationRequirement>>
) -> Self
Conditions that a Worker's Qualifications must meet in order to accept the HIT. A HIT can have between zero and ten Qualification requirements. All requirements must be met in order for a Worker to accept the HIT. Additionally, other actions can be restricted using the ActionsGuarded
field on each QualificationRequirement
structure.
sourcepub fn hit_review_status(self, input: HitReviewStatus) -> Self
pub fn hit_review_status(self, input: HitReviewStatus) -> Self
Indicates the review status of the HIT. Valid Values are NotReviewed | MarkedForReview | ReviewedAppropriate | ReviewedInappropriate.
sourcepub fn set_hit_review_status(self, input: Option<HitReviewStatus>) -> Self
pub fn set_hit_review_status(self, input: Option<HitReviewStatus>) -> Self
Indicates the review status of the HIT. Valid Values are NotReviewed | MarkedForReview | ReviewedAppropriate | ReviewedInappropriate.
sourcepub fn number_of_assignments_pending(self, input: i32) -> Self
pub fn number_of_assignments_pending(self, input: i32) -> Self
The number of assignments for this HIT that are being previewed or have been accepted by Workers, but have not yet been submitted, returned, or abandoned.
sourcepub fn set_number_of_assignments_pending(self, input: Option<i32>) -> Self
pub fn set_number_of_assignments_pending(self, input: Option<i32>) -> Self
The number of assignments for this HIT that are being previewed or have been accepted by Workers, but have not yet been submitted, returned, or abandoned.
sourcepub fn number_of_assignments_available(self, input: i32) -> Self
pub fn number_of_assignments_available(self, input: i32) -> Self
The number of assignments for this HIT that are available for Workers to accept.
sourcepub fn set_number_of_assignments_available(self, input: Option<i32>) -> Self
pub fn set_number_of_assignments_available(self, input: Option<i32>) -> Self
The number of assignments for this HIT that are available for Workers to accept.
sourcepub fn number_of_assignments_completed(self, input: i32) -> Self
pub fn number_of_assignments_completed(self, input: i32) -> Self
The number of assignments for this HIT that have been approved or rejected.
sourcepub fn set_number_of_assignments_completed(self, input: Option<i32>) -> Self
pub fn set_number_of_assignments_completed(self, input: Option<i32>) -> Self
The number of assignments for this HIT that have been approved or rejected.
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