pub struct TrialComponentParameterValue {
pub number_value: Option<f64>,
pub string_value: Option<String>,
}
Expand description
The value of a hyperparameter. Only one of NumberValue
or StringValue
can be specified.
This object is specified in the CreateTrialComponent request.
Fields§
§number_value: Option<f64>
The numeric value of a numeric hyperparameter. If you specify a value for this parameter, you can't specify the StringValue
parameter.
string_value: Option<String>
The string value of a categorical hyperparameter. If you specify a value for this parameter, you can't specify the NumberValue
parameter.
Trait Implementations§
Source§impl Clone for TrialComponentParameterValue
impl Clone for TrialComponentParameterValue
Source§fn clone(&self) -> TrialComponentParameterValue
fn clone(&self) -> TrialComponentParameterValue
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for TrialComponentParameterValue
impl Debug for TrialComponentParameterValue
Source§impl Default for TrialComponentParameterValue
impl Default for TrialComponentParameterValue
Source§fn default() -> TrialComponentParameterValue
fn default() -> TrialComponentParameterValue
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for TrialComponentParameterValue
impl<'de> Deserialize<'de> for TrialComponentParameterValue
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for TrialComponentParameterValue
impl PartialEq for TrialComponentParameterValue
Source§fn eq(&self, other: &TrialComponentParameterValue) -> bool
fn eq(&self, other: &TrialComponentParameterValue) -> bool
Tests for
self
and other
values to be equal, and is used by ==
.impl StructuralPartialEq for TrialComponentParameterValue
Auto Trait Implementations§
impl Freeze for TrialComponentParameterValue
impl RefUnwindSafe for TrialComponentParameterValue
impl Send for TrialComponentParameterValue
impl Sync for TrialComponentParameterValue
impl Unpin for TrialComponentParameterValue
impl UnwindSafe for TrialComponentParameterValue
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
Mutably borrows from an owned value. Read more