pub struct StudySpecBuilder { /* private fields */ }
Expand description
StudySpec builder.
Implementations§
Source§impl StudySpecBuilder
impl StudySpecBuilder
Sourcepub fn new(algorithm: String, observation_noise: ObservationNoise) -> Self
pub fn new(algorithm: String, observation_noise: ObservationNoise) -> Self
Creates a new instance of StudySpec builder.
Sourcepub fn with_metric_specs(self, metrics: Vec<MetricSpec>) -> Self
pub fn with_metric_specs(self, metrics: Vec<MetricSpec>) -> Self
Sets the MetricSpecs to the StudySpec.
Sourcepub fn with_parameters(self, parameters: Vec<ParameterSpec>) -> Self
pub fn with_parameters(self, parameters: Vec<ParameterSpec>) -> Self
Sets the ParameterSpecs to the StudySpec.
Sourcepub fn with_automated_stopping_spec(
self,
automated_stopping_spec: AutomatedStoppingSpec,
) -> Self
pub fn with_automated_stopping_spec( self, automated_stopping_spec: AutomatedStoppingSpec, ) -> Self
Sets the AutomatedStoppingSpec to the StudySpec.
Sourcepub fn with_metadata(self, metadata: Vec<KeyValue>) -> Self
pub fn with_metadata(self, metadata: Vec<KeyValue>) -> Self
Sourcepub fn with_pythia_endpoint(self, pythia_endpoint: String) -> Self
pub fn with_pythia_endpoint(self, pythia_endpoint: String) -> Self
Sets the Pythia endpoint to the StudySpec. The Pythia endpoint is the endpoint of the Pythia service that is used to generate suggestions.
Auto Trait Implementations§
impl Freeze for StudySpecBuilder
impl RefUnwindSafe for StudySpecBuilder
impl Send for StudySpecBuilder
impl Sync for StudySpecBuilder
impl Unpin for StudySpecBuilder
impl UnwindSafe for StudySpecBuilder
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
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> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T
in a tonic::Request