Struct aws_sdk_mturk::model::Hit
source · [−]#[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
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
sourceimpl Hit
impl Hit
sourcepub fn hit_type_id(&self) -> Option<&str>
pub fn hit_type_id(&self) -> Option<&str>
The ID of the HIT type of this HIT
sourcepub fn hit_group_id(&self) -> Option<&str>
pub fn hit_group_id(&self) -> Option<&str>
The ID of the HIT Group of this HIT.
sourcepub fn hit_layout_id(&self) -> Option<&str>
pub fn hit_layout_id(&self) -> Option<&str>
The ID of the HIT Layout of this HIT.
sourcepub fn creation_time(&self) -> Option<&DateTime>
pub fn creation_time(&self) -> Option<&DateTime>
The date and time the HIT was created.
sourcepub fn description(&self) -> Option<&str>
pub fn description(&self) -> Option<&str>
A general description of the HIT.
sourcepub fn question(&self) -> Option<&str>
pub fn question(&self) -> Option<&str>
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) -> Option<&str>
pub fn keywords(&self) -> Option<&str>
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) -> Option<&HitStatus>
pub fn hit_status(&self) -> Option<&HitStatus>
The status of the HIT and its assignments. Valid Values are Assignable | Unassignable | Reviewable | Reviewing | Disposed.
sourcepub fn max_assignments(&self) -> Option<i32>
pub fn max_assignments(&self) -> Option<i32>
The number of times the HIT can be accepted and completed before the HIT becomes unavailable.
sourcepub fn auto_approval_delay_in_seconds(&self) -> Option<i64>
pub fn auto_approval_delay_in_seconds(&self) -> 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.
sourcepub fn expiration(&self) -> Option<&DateTime>
pub fn expiration(&self) -> Option<&DateTime>
The date and time the HIT expires.
sourcepub fn assignment_duration_in_seconds(&self) -> Option<i64>
pub fn assignment_duration_in_seconds(&self) -> Option<i64>
The length of time, in seconds, that a Worker has to complete the HIT after accepting it.
sourcepub fn requester_annotation(&self) -> Option<&str>
pub fn requester_annotation(&self) -> Option<&str>
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) -> Option<&[QualificationRequirement]>
pub fn qualification_requirements(&self) -> Option<&[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.
sourcepub fn hit_review_status(&self) -> Option<&HitReviewStatus>
pub fn hit_review_status(&self) -> Option<&HitReviewStatus>
Indicates the review status of the HIT. Valid Values are NotReviewed | MarkedForReview | ReviewedAppropriate | ReviewedInappropriate.
sourcepub fn number_of_assignments_pending(&self) -> Option<i32>
pub fn number_of_assignments_pending(&self) -> 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.
sourcepub fn number_of_assignments_available(&self) -> Option<i32>
pub fn number_of_assignments_available(&self) -> Option<i32>
The number of assignments for this HIT that are available for Workers to accept.
sourcepub fn number_of_assignments_completed(&self) -> Option<i32>
pub fn number_of_assignments_completed(&self) -> Option<i32>
The number of assignments for this HIT that have been approved or rejected.
Trait Implementations
impl StructuralPartialEq for Hit
Auto Trait Implementations
impl RefUnwindSafe for Hit
impl Send for Hit
impl Sync for Hit
impl Unpin for Hit
impl UnwindSafe for Hit
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