#[non_exhaustive]pub struct UpdateTrialComponentInput {
pub trial_component_name: Option<String>,
pub display_name: Option<String>,
pub status: Option<TrialComponentStatus>,
pub start_time: Option<DateTime>,
pub end_time: Option<DateTime>,
pub parameters: Option<HashMap<String, TrialComponentParameterValue>>,
pub parameters_to_remove: Option<Vec<String>>,
pub input_artifacts: Option<HashMap<String, TrialComponentArtifact>>,
pub input_artifacts_to_remove: Option<Vec<String>>,
pub output_artifacts: Option<HashMap<String, TrialComponentArtifact>>,
pub output_artifacts_to_remove: Option<Vec<String>>,
}
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.trial_component_name: Option<String>
The name of the component to update.
display_name: Option<String>
The name of the component as displayed. The name doesn't need to be unique. If DisplayName
isn't specified, TrialComponentName
is displayed.
status: Option<TrialComponentStatus>
The new status of the component.
start_time: Option<DateTime>
When the component started.
end_time: Option<DateTime>
When the component ended.
parameters: Option<HashMap<String, TrialComponentParameterValue>>
Replaces all of the component's hyperparameters with the specified hyperparameters or add new hyperparameters. Existing hyperparameters are replaced if the trial component is updated with an identical hyperparameter key.
parameters_to_remove: Option<Vec<String>>
The hyperparameters to remove from the component.
input_artifacts: Option<HashMap<String, TrialComponentArtifact>>
Replaces all of the component's input artifacts with the specified artifacts or adds new input artifacts. Existing input artifacts are replaced if the trial component is updated with an identical input artifact key.
input_artifacts_to_remove: Option<Vec<String>>
The input artifacts to remove from the component.
output_artifacts: Option<HashMap<String, TrialComponentArtifact>>
Replaces all of the component's output artifacts with the specified artifacts or adds new output artifacts. Existing output artifacts are replaced if the trial component is updated with an identical output artifact key.
output_artifacts_to_remove: Option<Vec<String>>
The output artifacts to remove from the component.
Implementations§
source§impl UpdateTrialComponentInput
impl UpdateTrialComponentInput
sourcepub fn trial_component_name(&self) -> Option<&str>
pub fn trial_component_name(&self) -> Option<&str>
The name of the component to update.
sourcepub fn display_name(&self) -> Option<&str>
pub fn display_name(&self) -> Option<&str>
The name of the component as displayed. The name doesn't need to be unique. If DisplayName
isn't specified, TrialComponentName
is displayed.
sourcepub fn status(&self) -> Option<&TrialComponentStatus>
pub fn status(&self) -> Option<&TrialComponentStatus>
The new status of the component.
sourcepub fn start_time(&self) -> Option<&DateTime>
pub fn start_time(&self) -> Option<&DateTime>
When the component started.
sourcepub fn parameters(
&self
) -> Option<&HashMap<String, TrialComponentParameterValue>>
pub fn parameters( &self ) -> Option<&HashMap<String, TrialComponentParameterValue>>
Replaces all of the component's hyperparameters with the specified hyperparameters or add new hyperparameters. Existing hyperparameters are replaced if the trial component is updated with an identical hyperparameter key.
sourcepub fn parameters_to_remove(&self) -> &[String]
pub fn parameters_to_remove(&self) -> &[String]
The hyperparameters to remove from the component.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .parameters_to_remove.is_none()
.
sourcepub fn input_artifacts(
&self
) -> Option<&HashMap<String, TrialComponentArtifact>>
pub fn input_artifacts( &self ) -> Option<&HashMap<String, TrialComponentArtifact>>
Replaces all of the component's input artifacts with the specified artifacts or adds new input artifacts. Existing input artifacts are replaced if the trial component is updated with an identical input artifact key.
sourcepub fn input_artifacts_to_remove(&self) -> &[String]
pub fn input_artifacts_to_remove(&self) -> &[String]
The input artifacts to remove from the component.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .input_artifacts_to_remove.is_none()
.
sourcepub fn output_artifacts(
&self
) -> Option<&HashMap<String, TrialComponentArtifact>>
pub fn output_artifacts( &self ) -> Option<&HashMap<String, TrialComponentArtifact>>
Replaces all of the component's output artifacts with the specified artifacts or adds new output artifacts. Existing output artifacts are replaced if the trial component is updated with an identical output artifact key.
sourcepub fn output_artifacts_to_remove(&self) -> &[String]
pub fn output_artifacts_to_remove(&self) -> &[String]
The output artifacts to remove from the component.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .output_artifacts_to_remove.is_none()
.
source§impl UpdateTrialComponentInput
impl UpdateTrialComponentInput
sourcepub fn builder() -> UpdateTrialComponentInputBuilder
pub fn builder() -> UpdateTrialComponentInputBuilder
Creates a new builder-style object to manufacture UpdateTrialComponentInput
.
Trait Implementations§
source§impl Clone for UpdateTrialComponentInput
impl Clone for UpdateTrialComponentInput
source§fn clone(&self) -> UpdateTrialComponentInput
fn clone(&self) -> UpdateTrialComponentInput
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for UpdateTrialComponentInput
impl Debug for UpdateTrialComponentInput
source§impl PartialEq for UpdateTrialComponentInput
impl PartialEq for UpdateTrialComponentInput
source§fn eq(&self, other: &UpdateTrialComponentInput) -> bool
fn eq(&self, other: &UpdateTrialComponentInput) -> bool
self
and other
values to be equal, and is used
by ==
.