Struct aws_sdk_mturk::input::CreateHitTypeInput
source · [−]#[non_exhaustive]pub struct CreateHitTypeInput {
pub auto_approval_delay_in_seconds: Option<i64>,
pub assignment_duration_in_seconds: Option<i64>,
pub reward: Option<String>,
pub title: Option<String>,
pub keywords: Option<String>,
pub description: Option<String>,
pub qualification_requirements: Option<Vec<QualificationRequirement>>,
}
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.auto_approval_delay_in_seconds: Option<i64>
The number of seconds after an assignment for the HIT has been submitted, after which the assignment is considered Approved automatically unless the Requester explicitly rejects it.
assignment_duration_in_seconds: Option<i64>
The amount of time, in seconds, that a Worker has to complete the HIT after accepting it. If a Worker does not complete the assignment within the specified duration, the assignment is considered abandoned. If the HIT is still active (that is, its lifetime has not elapsed), the assignment becomes available for other users to find and accept.
reward: Option<String>
The amount of money the Requester will pay a Worker for successfully completing the HIT.
title: Option<String>
The title of the HIT. A title should be short and descriptive about the kind of task the HIT contains. On the Amazon Mechanical Turk web site, the HIT title appears in search results, and everywhere the HIT is mentioned.
keywords: Option<String>
One or more words or phrases that describe the HIT, separated by commas. These words are used in searches to find HITs.
description: Option<String>
A general description of the HIT. A description includes detailed information about the kind of task the HIT contains. On the Amazon Mechanical Turk web site, the HIT description appears in the expanded view of search results, and in the HIT and assignment screens. A good description gives the user enough information to evaluate the HIT before accepting it.
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.
Implementations
sourceimpl CreateHitTypeInput
impl CreateHitTypeInput
sourcepub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<CreateHITType, AwsErrorRetryPolicy>, BuildError>
pub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<CreateHITType, AwsErrorRetryPolicy>, BuildError>
Consumes the builder and constructs an Operation<CreateHITType
>
sourcepub fn builder() -> Builder
pub fn builder() -> Builder
Creates a new builder-style object to manufacture CreateHitTypeInput
sourceimpl CreateHitTypeInput
impl CreateHitTypeInput
sourcepub fn auto_approval_delay_in_seconds(&self) -> Option<i64>
pub fn auto_approval_delay_in_seconds(&self) -> Option<i64>
The number of seconds after an assignment for the HIT has been submitted, after which the assignment is considered Approved automatically unless the Requester explicitly rejects it.
sourcepub fn assignment_duration_in_seconds(&self) -> Option<i64>
pub fn assignment_duration_in_seconds(&self) -> Option<i64>
The amount of time, in seconds, that a Worker has to complete the HIT after accepting it. If a Worker does not complete the assignment within the specified duration, the assignment is considered abandoned. If the HIT is still active (that is, its lifetime has not elapsed), the assignment becomes available for other users to find and accept.
sourcepub fn reward(&self) -> Option<&str>
pub fn reward(&self) -> Option<&str>
The amount of money the Requester will pay a Worker for successfully completing the HIT.
sourcepub fn title(&self) -> Option<&str>
pub fn title(&self) -> Option<&str>
The title of the HIT. A title should be short and descriptive about the kind of task the HIT contains. On the Amazon Mechanical Turk web site, the HIT title appears in search results, and everywhere the HIT is mentioned.
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. These words are used in searches to find HITs.
sourcepub fn description(&self) -> Option<&str>
pub fn description(&self) -> Option<&str>
A general description of the HIT. A description includes detailed information about the kind of task the HIT contains. On the Amazon Mechanical Turk web site, the HIT description appears in the expanded view of search results, and in the HIT and assignment screens. A good description gives the user enough information to evaluate the HIT before accepting it.
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.
Trait Implementations
sourceimpl Clone for CreateHitTypeInput
impl Clone for CreateHitTypeInput
sourcefn clone(&self) -> CreateHitTypeInput
fn clone(&self) -> CreateHitTypeInput
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 CreateHitTypeInput
impl Debug for CreateHitTypeInput
sourceimpl PartialEq<CreateHitTypeInput> for CreateHitTypeInput
impl PartialEq<CreateHitTypeInput> for CreateHitTypeInput
sourcefn eq(&self, other: &CreateHitTypeInput) -> bool
fn eq(&self, other: &CreateHitTypeInput) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &CreateHitTypeInput) -> bool
fn ne(&self, other: &CreateHitTypeInput) -> bool
This method tests for !=
.
impl StructuralPartialEq for CreateHitTypeInput
Auto Trait Implementations
impl RefUnwindSafe for CreateHitTypeInput
impl Send for CreateHitTypeInput
impl Sync for CreateHitTypeInput
impl Unpin for CreateHitTypeInput
impl UnwindSafe for CreateHitTypeInput
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