pub struct Experiment {
pub domain: DomainType,
pub function_name: String,
pub parameters: Vec<(String, ParameterValue)>,
}Expand description
A computation request targeting a domain function with parameters.
Fields§
§domain: DomainTypeScientific domain.
function_name: StringFunction to invoke.
parameters: Vec<(String, ParameterValue)>Named parameters.
Implementations§
Source§impl Experiment
impl Experiment
Sourcepub fn new(domain: DomainType, function_name: &str) -> Experiment
pub fn new(domain: DomainType, function_name: &str) -> Experiment
Creates an experiment with no parameters.
Sourcepub fn param(self, name: &str, value: ParameterValue) -> Experiment
pub fn param(self, name: &str, value: ParameterValue) -> Experiment
Appends a named parameter.
Trait Implementations§
Source§impl Clone for Experiment
impl Clone for Experiment
Source§fn clone(&self) -> Experiment
fn clone(&self) -> Experiment
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for Experiment
impl RefUnwindSafe for Experiment
impl Send for Experiment
impl Sync for Experiment
impl Unpin for Experiment
impl UnsafeUnpin for Experiment
impl UnwindSafe for Experiment
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