#[non_exhaustive]pub struct HumanLoopConfigBuilder { /* private fields */ }
Expand description
A builder for HumanLoopConfig
.
Implementations§
Source§impl HumanLoopConfigBuilder
impl HumanLoopConfigBuilder
Sourcepub fn workteam_arn(self, input: impl Into<String>) -> Self
pub fn workteam_arn(self, input: impl Into<String>) -> Self
Amazon Resource Name (ARN) of a team of workers. To learn more about the types of workforces and work teams you can create and use with Amazon A2I, see Create and Manage Workforces.
This field is required.Sourcepub fn set_workteam_arn(self, input: Option<String>) -> Self
pub fn set_workteam_arn(self, input: Option<String>) -> Self
Amazon Resource Name (ARN) of a team of workers. To learn more about the types of workforces and work teams you can create and use with Amazon A2I, see Create and Manage Workforces.
Sourcepub fn get_workteam_arn(&self) -> &Option<String>
pub fn get_workteam_arn(&self) -> &Option<String>
Amazon Resource Name (ARN) of a team of workers. To learn more about the types of workforces and work teams you can create and use with Amazon A2I, see Create and Manage Workforces.
Sourcepub fn human_task_ui_arn(self, input: impl Into<String>) -> Self
pub fn human_task_ui_arn(self, input: impl Into<String>) -> Self
The Amazon Resource Name (ARN) of the human task user interface.
You can use standard HTML and Crowd HTML Elements to create a custom worker task template. You use this template to create a human task UI.
To learn how to create a custom HTML template, see Create Custom Worker Task Template.
To learn how to create a human task UI, which is a worker task template that can be used in a flow definition, see Create and Delete a Worker Task Templates.
This field is required.Sourcepub fn set_human_task_ui_arn(self, input: Option<String>) -> Self
pub fn set_human_task_ui_arn(self, input: Option<String>) -> Self
The Amazon Resource Name (ARN) of the human task user interface.
You can use standard HTML and Crowd HTML Elements to create a custom worker task template. You use this template to create a human task UI.
To learn how to create a custom HTML template, see Create Custom Worker Task Template.
To learn how to create a human task UI, which is a worker task template that can be used in a flow definition, see Create and Delete a Worker Task Templates.
Sourcepub fn get_human_task_ui_arn(&self) -> &Option<String>
pub fn get_human_task_ui_arn(&self) -> &Option<String>
The Amazon Resource Name (ARN) of the human task user interface.
You can use standard HTML and Crowd HTML Elements to create a custom worker task template. You use this template to create a human task UI.
To learn how to create a custom HTML template, see Create Custom Worker Task Template.
To learn how to create a human task UI, which is a worker task template that can be used in a flow definition, see Create and Delete a Worker Task Templates.
Sourcepub fn task_title(self, input: impl Into<String>) -> Self
pub fn task_title(self, input: impl Into<String>) -> Self
A title for the human worker task.
This field is required.Sourcepub fn set_task_title(self, input: Option<String>) -> Self
pub fn set_task_title(self, input: Option<String>) -> Self
A title for the human worker task.
Sourcepub fn get_task_title(&self) -> &Option<String>
pub fn get_task_title(&self) -> &Option<String>
A title for the human worker task.
Sourcepub fn task_description(self, input: impl Into<String>) -> Self
pub fn task_description(self, input: impl Into<String>) -> Self
A description for the human worker task.
This field is required.Sourcepub fn set_task_description(self, input: Option<String>) -> Self
pub fn set_task_description(self, input: Option<String>) -> Self
A description for the human worker task.
Sourcepub fn get_task_description(&self) -> &Option<String>
pub fn get_task_description(&self) -> &Option<String>
A description for the human worker task.
Sourcepub fn task_count(self, input: i32) -> Self
pub fn task_count(self, input: i32) -> Self
The number of distinct workers who will perform the same task on each object. For example, if TaskCount
is set to 3
for an image classification labeling job, three workers will classify each input image. Increasing TaskCount
can improve label accuracy.
Sourcepub fn set_task_count(self, input: Option<i32>) -> Self
pub fn set_task_count(self, input: Option<i32>) -> Self
The number of distinct workers who will perform the same task on each object. For example, if TaskCount
is set to 3
for an image classification labeling job, three workers will classify each input image. Increasing TaskCount
can improve label accuracy.
Sourcepub fn get_task_count(&self) -> &Option<i32>
pub fn get_task_count(&self) -> &Option<i32>
The number of distinct workers who will perform the same task on each object. For example, if TaskCount
is set to 3
for an image classification labeling job, three workers will classify each input image. Increasing TaskCount
can improve label accuracy.
Sourcepub fn task_availability_lifetime_in_seconds(self, input: i32) -> Self
pub fn task_availability_lifetime_in_seconds(self, input: i32) -> Self
The length of time that a task remains available for review by human workers.
Sourcepub fn set_task_availability_lifetime_in_seconds(
self,
input: Option<i32>,
) -> Self
pub fn set_task_availability_lifetime_in_seconds( self, input: Option<i32>, ) -> Self
The length of time that a task remains available for review by human workers.
Sourcepub fn get_task_availability_lifetime_in_seconds(&self) -> &Option<i32>
pub fn get_task_availability_lifetime_in_seconds(&self) -> &Option<i32>
The length of time that a task remains available for review by human workers.
Sourcepub fn task_time_limit_in_seconds(self, input: i32) -> Self
pub fn task_time_limit_in_seconds(self, input: i32) -> Self
The amount of time that a worker has to complete a task. The default value is 3,600 seconds (1 hour).
Sourcepub fn set_task_time_limit_in_seconds(self, input: Option<i32>) -> Self
pub fn set_task_time_limit_in_seconds(self, input: Option<i32>) -> Self
The amount of time that a worker has to complete a task. The default value is 3,600 seconds (1 hour).
Sourcepub fn get_task_time_limit_in_seconds(&self) -> &Option<i32>
pub fn get_task_time_limit_in_seconds(&self) -> &Option<i32>
The amount of time that a worker has to complete a task. The default value is 3,600 seconds (1 hour).
Sourcepub fn task_keywords(self, input: impl Into<String>) -> Self
pub fn task_keywords(self, input: impl Into<String>) -> Self
Appends an item to task_keywords
.
To override the contents of this collection use set_task_keywords
.
Keywords used to describe the task so that workers can discover the task.
Sourcepub fn set_task_keywords(self, input: Option<Vec<String>>) -> Self
pub fn set_task_keywords(self, input: Option<Vec<String>>) -> Self
Keywords used to describe the task so that workers can discover the task.
Sourcepub fn get_task_keywords(&self) -> &Option<Vec<String>>
pub fn get_task_keywords(&self) -> &Option<Vec<String>>
Keywords used to describe the task so that workers can discover the task.
Sourcepub fn public_workforce_task_price(
self,
input: PublicWorkforceTaskPrice,
) -> Self
pub fn public_workforce_task_price( self, input: PublicWorkforceTaskPrice, ) -> Self
Defines the amount of money paid to an Amazon Mechanical Turk worker for each task performed.
Use one of the following prices for bounding box tasks. Prices are in US dollars and should be based on the complexity of the task; the longer it takes in your initial testing, the more you should offer.
-
0.036
-
0.048
-
0.060
-
0.072
-
0.120
-
0.240
-
0.360
-
0.480
-
0.600
-
0.720
-
0.840
-
0.960
-
1.080
-
1.200
Use one of the following prices for image classification, text classification, and custom tasks. Prices are in US dollars.
-
0.012
-
0.024
-
0.036
-
0.048
-
0.060
-
0.072
-
0.120
-
0.240
-
0.360
-
0.480
-
0.600
-
0.720
-
0.840
-
0.960
-
1.080
-
1.200
Use one of the following prices for semantic segmentation tasks. Prices are in US dollars.
-
0.840
-
0.960
-
1.080
-
1.200
Use one of the following prices for Textract AnalyzeDocument Important Form Key Amazon Augmented AI review tasks. Prices are in US dollars.
-
2.400
-
2.280
-
2.160
-
2.040
-
1.920
-
1.800
-
1.680
-
1.560
-
1.440
-
1.320
-
1.200
-
1.080
-
0.960
-
0.840
-
0.720
-
0.600
-
0.480
-
0.360
-
0.240
-
0.120
-
0.072
-
0.060
-
0.048
-
0.036
-
0.024
-
0.012
Use one of the following prices for Rekognition DetectModerationLabels Amazon Augmented AI review tasks. Prices are in US dollars.
-
1.200
-
1.080
-
0.960
-
0.840
-
0.720
-
0.600
-
0.480
-
0.360
-
0.240
-
0.120
-
0.072
-
0.060
-
0.048
-
0.036
-
0.024
-
0.012
Use one of the following prices for Amazon Augmented AI custom human review tasks. Prices are in US dollars.
-
1.200
-
1.080
-
0.960
-
0.840
-
0.720
-
0.600
-
0.480
-
0.360
-
0.240
-
0.120
-
0.072
-
0.060
-
0.048
-
0.036
-
0.024
-
0.012
Sourcepub fn set_public_workforce_task_price(
self,
input: Option<PublicWorkforceTaskPrice>,
) -> Self
pub fn set_public_workforce_task_price( self, input: Option<PublicWorkforceTaskPrice>, ) -> Self
Defines the amount of money paid to an Amazon Mechanical Turk worker for each task performed.
Use one of the following prices for bounding box tasks. Prices are in US dollars and should be based on the complexity of the task; the longer it takes in your initial testing, the more you should offer.
-
0.036
-
0.048
-
0.060
-
0.072
-
0.120
-
0.240
-
0.360
-
0.480
-
0.600
-
0.720
-
0.840
-
0.960
-
1.080
-
1.200
Use one of the following prices for image classification, text classification, and custom tasks. Prices are in US dollars.
-
0.012
-
0.024
-
0.036
-
0.048
-
0.060
-
0.072
-
0.120
-
0.240
-
0.360
-
0.480
-
0.600
-
0.720
-
0.840
-
0.960
-
1.080
-
1.200
Use one of the following prices for semantic segmentation tasks. Prices are in US dollars.
-
0.840
-
0.960
-
1.080
-
1.200
Use one of the following prices for Textract AnalyzeDocument Important Form Key Amazon Augmented AI review tasks. Prices are in US dollars.
-
2.400
-
2.280
-
2.160
-
2.040
-
1.920
-
1.800
-
1.680
-
1.560
-
1.440
-
1.320
-
1.200
-
1.080
-
0.960
-
0.840
-
0.720
-
0.600
-
0.480
-
0.360
-
0.240
-
0.120
-
0.072
-
0.060
-
0.048
-
0.036
-
0.024
-
0.012
Use one of the following prices for Rekognition DetectModerationLabels Amazon Augmented AI review tasks. Prices are in US dollars.
-
1.200
-
1.080
-
0.960
-
0.840
-
0.720
-
0.600
-
0.480
-
0.360
-
0.240
-
0.120
-
0.072
-
0.060
-
0.048
-
0.036
-
0.024
-
0.012
Use one of the following prices for Amazon Augmented AI custom human review tasks. Prices are in US dollars.
-
1.200
-
1.080
-
0.960
-
0.840
-
0.720
-
0.600
-
0.480
-
0.360
-
0.240
-
0.120
-
0.072
-
0.060
-
0.048
-
0.036
-
0.024
-
0.012
Sourcepub fn get_public_workforce_task_price(
&self,
) -> &Option<PublicWorkforceTaskPrice>
pub fn get_public_workforce_task_price( &self, ) -> &Option<PublicWorkforceTaskPrice>
Defines the amount of money paid to an Amazon Mechanical Turk worker for each task performed.
Use one of the following prices for bounding box tasks. Prices are in US dollars and should be based on the complexity of the task; the longer it takes in your initial testing, the more you should offer.
-
0.036
-
0.048
-
0.060
-
0.072
-
0.120
-
0.240
-
0.360
-
0.480
-
0.600
-
0.720
-
0.840
-
0.960
-
1.080
-
1.200
Use one of the following prices for image classification, text classification, and custom tasks. Prices are in US dollars.
-
0.012
-
0.024
-
0.036
-
0.048
-
0.060
-
0.072
-
0.120
-
0.240
-
0.360
-
0.480
-
0.600
-
0.720
-
0.840
-
0.960
-
1.080
-
1.200
Use one of the following prices for semantic segmentation tasks. Prices are in US dollars.
-
0.840
-
0.960
-
1.080
-
1.200
Use one of the following prices for Textract AnalyzeDocument Important Form Key Amazon Augmented AI review tasks. Prices are in US dollars.
-
2.400
-
2.280
-
2.160
-
2.040
-
1.920
-
1.800
-
1.680
-
1.560
-
1.440
-
1.320
-
1.200
-
1.080
-
0.960
-
0.840
-
0.720
-
0.600
-
0.480
-
0.360
-
0.240
-
0.120
-
0.072
-
0.060
-
0.048
-
0.036
-
0.024
-
0.012
Use one of the following prices for Rekognition DetectModerationLabels Amazon Augmented AI review tasks. Prices are in US dollars.
-
1.200
-
1.080
-
0.960
-
0.840
-
0.720
-
0.600
-
0.480
-
0.360
-
0.240
-
0.120
-
0.072
-
0.060
-
0.048
-
0.036
-
0.024
-
0.012
Use one of the following prices for Amazon Augmented AI custom human review tasks. Prices are in US dollars.
-
1.200
-
1.080
-
0.960
-
0.840
-
0.720
-
0.600
-
0.480
-
0.360
-
0.240
-
0.120
-
0.072
-
0.060
-
0.048
-
0.036
-
0.024
-
0.012
Sourcepub fn build(self) -> HumanLoopConfig
pub fn build(self) -> HumanLoopConfig
Consumes the builder and constructs a HumanLoopConfig
.
Trait Implementations§
Source§impl Clone for HumanLoopConfigBuilder
impl Clone for HumanLoopConfigBuilder
Source§fn clone(&self) -> HumanLoopConfigBuilder
fn clone(&self) -> HumanLoopConfigBuilder
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for HumanLoopConfigBuilder
impl Debug for HumanLoopConfigBuilder
Source§impl Default for HumanLoopConfigBuilder
impl Default for HumanLoopConfigBuilder
Source§fn default() -> HumanLoopConfigBuilder
fn default() -> HumanLoopConfigBuilder
Source§impl PartialEq for HumanLoopConfigBuilder
impl PartialEq for HumanLoopConfigBuilder
impl StructuralPartialEq for HumanLoopConfigBuilder
Auto Trait Implementations§
impl Freeze for HumanLoopConfigBuilder
impl RefUnwindSafe for HumanLoopConfigBuilder
impl Send for HumanLoopConfigBuilder
impl Sync for HumanLoopConfigBuilder
impl Unpin for HumanLoopConfigBuilder
impl UnwindSafe for HumanLoopConfigBuilder
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> Paint for Twhere
T: ?Sized,
impl<T> Paint for Twhere
T: ?Sized,
Source§fn fg(&self, value: Color) -> Painted<&T>
fn fg(&self, value: Color) -> Painted<&T>
Returns a styled value derived from self
with the foreground set to
value
.
This method should be used rarely. Instead, prefer to use color-specific
builder methods like red()
and
green()
, which have the same functionality but are
pithier.
§Example
Set foreground color to white using fg()
:
use yansi::{Paint, Color};
painted.fg(Color::White);
Set foreground color to white using white()
.
use yansi::Paint;
painted.white();
Source§fn bright_black(&self) -> Painted<&T>
fn bright_black(&self) -> Painted<&T>
Source§fn bright_red(&self) -> Painted<&T>
fn bright_red(&self) -> Painted<&T>
Source§fn bright_green(&self) -> Painted<&T>
fn bright_green(&self) -> Painted<&T>
Source§fn bright_yellow(&self) -> Painted<&T>
fn bright_yellow(&self) -> Painted<&T>
Source§fn bright_blue(&self) -> Painted<&T>
fn bright_blue(&self) -> Painted<&T>
Source§fn bright_magenta(&self) -> Painted<&T>
fn bright_magenta(&self) -> Painted<&T>
Source§fn bright_cyan(&self) -> Painted<&T>
fn bright_cyan(&self) -> Painted<&T>
Source§fn bright_white(&self) -> Painted<&T>
fn bright_white(&self) -> Painted<&T>
Source§fn bg(&self, value: Color) -> Painted<&T>
fn bg(&self, value: Color) -> Painted<&T>
Returns a styled value derived from self
with the background set to
value
.
This method should be used rarely. Instead, prefer to use color-specific
builder methods like on_red()
and
on_green()
, which have the same functionality but
are pithier.
§Example
Set background color to red using fg()
:
use yansi::{Paint, Color};
painted.bg(Color::Red);
Set background color to red using on_red()
.
use yansi::Paint;
painted.on_red();
Source§fn on_primary(&self) -> Painted<&T>
fn on_primary(&self) -> Painted<&T>
Source§fn on_magenta(&self) -> Painted<&T>
fn on_magenta(&self) -> Painted<&T>
Source§fn on_bright_black(&self) -> Painted<&T>
fn on_bright_black(&self) -> Painted<&T>
Source§fn on_bright_red(&self) -> Painted<&T>
fn on_bright_red(&self) -> Painted<&T>
Source§fn on_bright_green(&self) -> Painted<&T>
fn on_bright_green(&self) -> Painted<&T>
Source§fn on_bright_yellow(&self) -> Painted<&T>
fn on_bright_yellow(&self) -> Painted<&T>
Source§fn on_bright_blue(&self) -> Painted<&T>
fn on_bright_blue(&self) -> Painted<&T>
Source§fn on_bright_magenta(&self) -> Painted<&T>
fn on_bright_magenta(&self) -> Painted<&T>
Source§fn on_bright_cyan(&self) -> Painted<&T>
fn on_bright_cyan(&self) -> Painted<&T>
Source§fn on_bright_white(&self) -> Painted<&T>
fn on_bright_white(&self) -> Painted<&T>
Source§fn attr(&self, value: Attribute) -> Painted<&T>
fn attr(&self, value: Attribute) -> Painted<&T>
Enables the styling Attribute
value
.
This method should be used rarely. Instead, prefer to use
attribute-specific builder methods like bold()
and
underline()
, which have the same functionality
but are pithier.
§Example
Make text bold using attr()
:
use yansi::{Paint, Attribute};
painted.attr(Attribute::Bold);
Make text bold using using bold()
.
use yansi::Paint;
painted.bold();
Source§fn rapid_blink(&self) -> Painted<&T>
fn rapid_blink(&self) -> Painted<&T>
Source§fn quirk(&self, value: Quirk) -> Painted<&T>
fn quirk(&self, value: Quirk) -> Painted<&T>
Enables the yansi
Quirk
value
.
This method should be used rarely. Instead, prefer to use quirk-specific
builder methods like mask()
and
wrap()
, which have the same functionality but are
pithier.
§Example
Enable wrapping using .quirk()
:
use yansi::{Paint, Quirk};
painted.quirk(Quirk::Wrap);
Enable wrapping using wrap()
.
use yansi::Paint;
painted.wrap();
Source§fn clear(&self) -> Painted<&T>
👎Deprecated since 1.0.1: renamed to resetting()
due to conflicts with Vec::clear()
.
The clear()
method will be removed in a future release.
fn clear(&self) -> Painted<&T>
resetting()
due to conflicts with Vec::clear()
.
The clear()
method will be removed in a future release.Source§fn whenever(&self, value: Condition) -> Painted<&T>
fn whenever(&self, value: Condition) -> Painted<&T>
Conditionally enable styling based on whether the Condition
value
applies. Replaces any previous condition.
See the crate level docs for more details.
§Example
Enable styling painted
only when both stdout
and stderr
are TTYs:
use yansi::{Paint, Condition};
painted.red().on_yellow().whenever(Condition::STDOUTERR_ARE_TTY);