Struct ImportTrial
pub struct ImportTrial {
pub study: usize,
pub params: Vec<ParamWrite>,
pub intermediates: Vec<(u64, Vec<f64>)>,
pub user_attrs: UserAttrs,
pub constraints: Option<Vec<f64>>,
pub outcome: ImportOutcome,
}Expand description
One trial staged for import.
Fields§
§study: usizeSource-study index into ImportBatch::studies.
params: Vec<ParamWrite>Parameters and their source distributions, in source order.
intermediates: Vec<(u64, Vec<f64>)>Accepted intermediate reports, in source order.
user_attrs: UserAttrsPortable user-owned trial attributes.
constraints: Option<Vec<f64>>Optional typed constraint vector.
outcome: ImportOutcomeThe source trial’s terminal or unfinished state.
Trait Implementations§
§impl Clone for ImportTrial
impl Clone for ImportTrial
§fn clone(&self) -> ImportTrial
fn clone(&self) -> ImportTrial
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 more§impl Debug for ImportTrial
impl Debug for ImportTrial
§impl<'de> Deserialize<'de> for ImportTrial
impl<'de> Deserialize<'de> for ImportTrial
§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
§impl PartialEq for ImportTrial
impl PartialEq for ImportTrial
§impl Serialize for ImportTrial
impl Serialize for ImportTrial
impl StructuralPartialEq for ImportTrial
Auto Trait Implementations§
impl Freeze for ImportTrial
impl RefUnwindSafe for ImportTrial
impl Send for ImportTrial
impl Sync for ImportTrial
impl Unpin for ImportTrial
impl UnsafeUnpin for ImportTrial
impl UnwindSafe for ImportTrial
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