Struct aws_sdk_mturk::client::fluent_builders::CreateHITType
source · [−]pub struct CreateHITType { /* private fields */ }
Expand description
Fluent builder constructing a request to CreateHITType
.
The CreateHITType
operation creates a new HIT type. This operation allows you to define a standard set of HIT properties to use when creating HITs. If you register a HIT type with values that match an existing HIT type, the HIT type ID of the existing type will be returned.
Implementations
sourceimpl CreateHITType
impl CreateHITType
sourcepub async fn send(
self
) -> Result<CreateHitTypeOutput, SdkError<CreateHITTypeError>>
pub async fn send(
self
) -> Result<CreateHitTypeOutput, SdkError<CreateHITTypeError>>
Sends the request and returns the response.
If an error occurs, an SdkError
will be returned with additional details that
can be matched against.
By default, any retryable failures will be retried twice. Retry behavior is configurable with the RetryConfig, which can be set when configuring the client.
sourcepub fn auto_approval_delay_in_seconds(self, input: i64) -> Self
pub fn auto_approval_delay_in_seconds(self, input: i64) -> Self
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 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 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, input: i64) -> Self
pub fn assignment_duration_in_seconds(self, input: i64) -> Self
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 set_assignment_duration_in_seconds(self, input: Option<i64>) -> Self
pub fn set_assignment_duration_in_seconds(self, input: Option<i64>) -> Self
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, input: impl Into<String>) -> Self
pub fn reward(self, input: impl Into<String>) -> Self
The amount of money the Requester will pay a Worker for successfully completing the HIT.
sourcepub fn set_reward(self, input: Option<String>) -> Self
pub fn set_reward(self, input: Option<String>) -> Self
The amount of money the Requester will pay a Worker for successfully completing the HIT.
sourcepub fn title(self, input: impl Into<String>) -> Self
pub fn title(self, input: impl Into<String>) -> Self
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 set_title(self, input: Option<String>) -> Self
pub fn set_title(self, input: Option<String>) -> Self
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, 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. These words are used in searches to find HITs.
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. These words are used in searches to find HITs.
sourcepub fn description(self, input: impl Into<String>) -> Self
pub fn description(self, input: impl Into<String>) -> Self
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 set_description(self, input: Option<String>) -> Self
pub fn set_description(self, input: Option<String>) -> Self
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, input: QualificationRequirement) -> Self
pub fn qualification_requirements(self, input: QualificationRequirement) -> Self
Appends an item to QualificationRequirements
.
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.
Trait Implementations
sourceimpl Clone for CreateHITType
impl Clone for CreateHITType
sourcefn clone(&self) -> CreateHITType
fn clone(&self) -> CreateHITType
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
Auto Trait Implementations
impl !RefUnwindSafe for CreateHITType
impl Send for CreateHITType
impl Sync for CreateHITType
impl Unpin for CreateHITType
impl !UnwindSafe for CreateHITType
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