#[non_exhaustive]pub struct IntegerValueSpec {
pub min_value: i64,
pub max_value: i64,
pub default_value: Option<i64>,
/* private fields */
}Available on crate features
job-service or vizier-service only.Expand description
Value specification for a parameter in INTEGER type.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.min_value: i64Required. Inclusive minimum value of the parameter.
max_value: i64Required. Inclusive maximum value of the parameter.
default_value: Option<i64>A default value for an INTEGER parameter that is assumed to be a
relatively good starting point. Unset value signals that there is no
offered starting point.
Currently only supported by the Vertex AI Vizier service. Not supported by HyperparameterTuningJob or TrainingPipeline.
Implementations§
Source§impl IntegerValueSpec
impl IntegerValueSpec
pub fn new() -> Self
Sourcepub fn set_min_value<T: Into<i64>>(self, v: T) -> Self
pub fn set_min_value<T: Into<i64>>(self, v: T) -> Self
Sourcepub fn set_max_value<T: Into<i64>>(self, v: T) -> Self
pub fn set_max_value<T: Into<i64>>(self, v: T) -> Self
Sourcepub fn set_default_value<T>(self, v: T) -> Self
pub fn set_default_value<T>(self, v: T) -> Self
Sourcepub fn set_or_clear_default_value<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_default_value<T>(self, v: Option<T>) -> Self
Sets or clears the value of default_value.
§Example
ⓘ
let x = IntegerValueSpec::new().set_or_clear_default_value(Some(42));
let x = IntegerValueSpec::new().set_or_clear_default_value(None::<i32>);Trait Implementations§
Source§impl Clone for IntegerValueSpec
impl Clone for IntegerValueSpec
Source§fn clone(&self) -> IntegerValueSpec
fn clone(&self) -> IntegerValueSpec
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 IntegerValueSpec
impl Debug for IntegerValueSpec
Source§impl Default for IntegerValueSpec
impl Default for IntegerValueSpec
Source§fn default() -> IntegerValueSpec
fn default() -> IntegerValueSpec
Returns the “default value” for a type. Read more
Source§impl Message for IntegerValueSpec
impl Message for IntegerValueSpec
Source§impl PartialEq for IntegerValueSpec
impl PartialEq for IntegerValueSpec
impl StructuralPartialEq for IntegerValueSpec
Auto Trait Implementations§
impl Freeze for IntegerValueSpec
impl RefUnwindSafe for IntegerValueSpec
impl Send for IntegerValueSpec
impl Sync for IntegerValueSpec
impl Unpin for IntegerValueSpec
impl UnwindSafe for IntegerValueSpec
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