#[non_exhaustive]
pub struct Hit {
Show 21 fields pub hit_id: Option<String>, pub hit_type_id: Option<String>, pub hit_group_id: Option<String>, pub hit_layout_id: Option<String>, pub creation_time: Option<DateTime>, pub title: Option<String>, pub description: Option<String>, pub question: Option<String>, pub keywords: Option<String>, pub hit_status: Option<HitStatus>, pub max_assignments: Option<i32>, pub reward: Option<String>, pub auto_approval_delay_in_seconds: Option<i64>, pub expiration: Option<DateTime>, pub assignment_duration_in_seconds: Option<i64>, pub requester_annotation: Option<String>, pub qualification_requirements: Option<Vec<QualificationRequirement>>, pub hit_review_status: Option<HitReviewStatus>, pub number_of_assignments_pending: Option<i32>, pub number_of_assignments_available: Option<i32>, pub number_of_assignments_completed: Option<i32>,
}
Expand description

The HIT data structure represents a single HIT, including all the information necessary for a Worker to accept and complete the HIT.

Fields (Non-exhaustive)

This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.
hit_id: Option<String>

A unique identifier for the HIT.

hit_type_id: Option<String>

The ID of the HIT type of this HIT

hit_group_id: Option<String>

The ID of the HIT Group of this HIT.

hit_layout_id: Option<String>

The ID of the HIT Layout of this HIT.

creation_time: Option<DateTime>

The date and time the HIT was created.

title: Option<String>

The title of the HIT.

description: Option<String>

A general description of the HIT.

question: Option<String>

The data the Worker completing the HIT uses produce the results. This is either either a QuestionForm, HTMLQuestion or an ExternalQuestion data structure.

keywords: Option<String>

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.

hit_status: Option<HitStatus>

The status of the HIT and its assignments. Valid Values are Assignable | Unassignable | Reviewable | Reviewing | Disposed.

max_assignments: Option<i32>

The number of times the HIT can be accepted and completed before the HIT becomes unavailable.

reward: Option<String>

A string representing a currency amount.

auto_approval_delay_in_seconds: Option<i64>

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.

expiration: Option<DateTime>

The date and time the HIT expires.

assignment_duration_in_seconds: Option<i64>

The length of time, in seconds, that a Worker has to complete the HIT after accepting it.

requester_annotation: Option<String>

An arbitrary data field the Requester who created the HIT can use. This field is visible only to the creator of the HIT.

qualification_requirements: Option<Vec<QualificationRequirement>>

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.

hit_review_status: Option<HitReviewStatus>

Indicates the review status of the HIT. Valid Values are NotReviewed | MarkedForReview | ReviewedAppropriate | ReviewedInappropriate.

number_of_assignments_pending: Option<i32>

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.

number_of_assignments_available: Option<i32>

The number of assignments for this HIT that are available for Workers to accept.

number_of_assignments_completed: Option<i32>

The number of assignments for this HIT that have been approved or rejected.

Implementations

A unique identifier for the HIT.

The ID of the HIT type of this HIT

The ID of the HIT Group of this HIT.

The ID of the HIT Layout of this HIT.

The date and time the HIT was created.

The title of the HIT.

A general description of the HIT.

The data the Worker completing the HIT uses produce the results. This is either either a QuestionForm, HTMLQuestion or an ExternalQuestion data structure.

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.

The status of the HIT and its assignments. Valid Values are Assignable | Unassignable | Reviewable | Reviewing | Disposed.

The number of times the HIT can be accepted and completed before the HIT becomes unavailable.

A string representing a currency amount.

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.

The date and time the HIT expires.

The length of time, in seconds, that a Worker has to complete the HIT after accepting it.

An arbitrary data field the Requester who created the HIT can use. This field is visible only to the creator of the HIT.

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.

Indicates the review status of the HIT. Valid Values are NotReviewed | MarkedForReview | ReviewedAppropriate | ReviewedInappropriate.

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.

The number of assignments for this HIT that are available for Workers to accept.

The number of assignments for this HIT that have been approved or rejected.

Creates a new builder-style object to manufacture Hit

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more