#[non_exhaustive]pub struct ProjectVersionDescription {Show 19 fields
pub project_version_arn: Option<String>,
pub creation_timestamp: Option<DateTime>,
pub min_inference_units: Option<i32>,
pub status: Option<ProjectVersionStatus>,
pub status_message: Option<String>,
pub billable_training_time_in_seconds: Option<i64>,
pub training_end_timestamp: Option<DateTime>,
pub output_config: Option<OutputConfig>,
pub training_data_result: Option<TrainingDataResult>,
pub testing_data_result: Option<TestingDataResult>,
pub evaluation_result: Option<EvaluationResult>,
pub manifest_summary: Option<GroundTruthManifest>,
pub kms_key_id: Option<String>,
pub max_inference_units: Option<i32>,
pub source_project_version_arn: Option<String>,
pub version_description: Option<String>,
pub feature: Option<CustomizationFeature>,
pub base_model_version: Option<String>,
pub feature_config: Option<CustomizationFeatureConfig>,
}
Expand description
A description of a version of a Amazon Rekognition project version.
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.project_version_arn: Option<String>
The Amazon Resource Name (ARN) of the project version.
creation_timestamp: Option<DateTime>
The Unix datetime for the date and time that training started.
min_inference_units: Option<i32>
The minimum number of inference units used by the model. Applies only to Custom Labels projects. For more information, see StartProjectVersion
.
status: Option<ProjectVersionStatus>
The current status of the model version.
status_message: Option<String>
A descriptive message for an error or warning that occurred.
billable_training_time_in_seconds: Option<i64>
The duration, in seconds, that you were billed for a successful training of the model version. This value is only returned if the model version has been successfully trained.
training_end_timestamp: Option<DateTime>
The Unix date and time that training of the model ended.
output_config: Option<OutputConfig>
The location where training results are saved.
training_data_result: Option<TrainingDataResult>
Contains information about the training results.
testing_data_result: Option<TestingDataResult>
Contains information about the testing results.
evaluation_result: Option<EvaluationResult>
The training results. EvaluationResult
is only returned if training is successful.
manifest_summary: Option<GroundTruthManifest>
The location of the summary manifest. The summary manifest provides aggregate data validation results for the training and test datasets.
kms_key_id: Option<String>
The identifer for the AWS Key Management Service key (AWS KMS key) that was used to encrypt the model during training.
max_inference_units: Option<i32>
The maximum number of inference units Amazon Rekognition uses to auto-scale the model. Applies only to Custom Labels projects. For more information, see StartProjectVersion
.
source_project_version_arn: Option<String>
If the model version was copied from a different project, SourceProjectVersionArn
contains the ARN of the source model version.
version_description: Option<String>
A user-provided description of the project version.
feature: Option<CustomizationFeature>
The feature that was customized.
base_model_version: Option<String>
The base detection model version used to create the project version.
feature_config: Option<CustomizationFeatureConfig>
Feature specific configuration that was applied during training.
Implementations§
Source§impl ProjectVersionDescription
impl ProjectVersionDescription
Sourcepub fn project_version_arn(&self) -> Option<&str>
pub fn project_version_arn(&self) -> Option<&str>
The Amazon Resource Name (ARN) of the project version.
Sourcepub fn creation_timestamp(&self) -> Option<&DateTime>
pub fn creation_timestamp(&self) -> Option<&DateTime>
The Unix datetime for the date and time that training started.
Sourcepub fn min_inference_units(&self) -> Option<i32>
pub fn min_inference_units(&self) -> Option<i32>
The minimum number of inference units used by the model. Applies only to Custom Labels projects. For more information, see StartProjectVersion
.
Sourcepub fn status(&self) -> Option<&ProjectVersionStatus>
pub fn status(&self) -> Option<&ProjectVersionStatus>
The current status of the model version.
Sourcepub fn status_message(&self) -> Option<&str>
pub fn status_message(&self) -> Option<&str>
A descriptive message for an error or warning that occurred.
Sourcepub fn billable_training_time_in_seconds(&self) -> Option<i64>
pub fn billable_training_time_in_seconds(&self) -> Option<i64>
The duration, in seconds, that you were billed for a successful training of the model version. This value is only returned if the model version has been successfully trained.
Sourcepub fn training_end_timestamp(&self) -> Option<&DateTime>
pub fn training_end_timestamp(&self) -> Option<&DateTime>
The Unix date and time that training of the model ended.
Sourcepub fn output_config(&self) -> Option<&OutputConfig>
pub fn output_config(&self) -> Option<&OutputConfig>
The location where training results are saved.
Sourcepub fn training_data_result(&self) -> Option<&TrainingDataResult>
pub fn training_data_result(&self) -> Option<&TrainingDataResult>
Contains information about the training results.
Sourcepub fn testing_data_result(&self) -> Option<&TestingDataResult>
pub fn testing_data_result(&self) -> Option<&TestingDataResult>
Contains information about the testing results.
Sourcepub fn evaluation_result(&self) -> Option<&EvaluationResult>
pub fn evaluation_result(&self) -> Option<&EvaluationResult>
The training results. EvaluationResult
is only returned if training is successful.
Sourcepub fn manifest_summary(&self) -> Option<&GroundTruthManifest>
pub fn manifest_summary(&self) -> Option<&GroundTruthManifest>
The location of the summary manifest. The summary manifest provides aggregate data validation results for the training and test datasets.
Sourcepub fn kms_key_id(&self) -> Option<&str>
pub fn kms_key_id(&self) -> Option<&str>
The identifer for the AWS Key Management Service key (AWS KMS key) that was used to encrypt the model during training.
Sourcepub fn max_inference_units(&self) -> Option<i32>
pub fn max_inference_units(&self) -> Option<i32>
The maximum number of inference units Amazon Rekognition uses to auto-scale the model. Applies only to Custom Labels projects. For more information, see StartProjectVersion
.
Sourcepub fn source_project_version_arn(&self) -> Option<&str>
pub fn source_project_version_arn(&self) -> Option<&str>
If the model version was copied from a different project, SourceProjectVersionArn
contains the ARN of the source model version.
Sourcepub fn version_description(&self) -> Option<&str>
pub fn version_description(&self) -> Option<&str>
A user-provided description of the project version.
Sourcepub fn feature(&self) -> Option<&CustomizationFeature>
pub fn feature(&self) -> Option<&CustomizationFeature>
The feature that was customized.
Sourcepub fn base_model_version(&self) -> Option<&str>
pub fn base_model_version(&self) -> Option<&str>
The base detection model version used to create the project version.
Sourcepub fn feature_config(&self) -> Option<&CustomizationFeatureConfig>
pub fn feature_config(&self) -> Option<&CustomizationFeatureConfig>
Feature specific configuration that was applied during training.
Source§impl ProjectVersionDescription
impl ProjectVersionDescription
Sourcepub fn builder() -> ProjectVersionDescriptionBuilder
pub fn builder() -> ProjectVersionDescriptionBuilder
Creates a new builder-style object to manufacture ProjectVersionDescription
.
Trait Implementations§
Source§impl Clone for ProjectVersionDescription
impl Clone for ProjectVersionDescription
Source§fn clone(&self) -> ProjectVersionDescription
fn clone(&self) -> ProjectVersionDescription
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for ProjectVersionDescription
impl Debug for ProjectVersionDescription
Source§impl PartialEq for ProjectVersionDescription
impl PartialEq for ProjectVersionDescription
Source§fn eq(&self, other: &ProjectVersionDescription) -> bool
fn eq(&self, other: &ProjectVersionDescription) -> bool
self
and other
values to be equal, and is used by ==
.impl StructuralPartialEq for ProjectVersionDescription
Auto Trait Implementations§
impl Freeze for ProjectVersionDescription
impl RefUnwindSafe for ProjectVersionDescription
impl Send for ProjectVersionDescription
impl Sync for ProjectVersionDescription
impl Unpin for ProjectVersionDescription
impl UnwindSafe for ProjectVersionDescription
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);