pub struct VariantExecutionSpec {
pub variant_id: VariantId,
pub choices: BTreeMap<String, GenerationChoice>,
pub fingerprint: String,
pub seed: Option<u64>,
}Fields§
§variant_id: VariantId§choices: BTreeMap<String, GenerationChoice>§fingerprint: String§seed: Option<u64>Implementations§
Source§impl VariantExecutionSpec
impl VariantExecutionSpec
pub fn from_plan(variant: &VariantPlan) -> VariantExecutionSpec
pub fn validate(&self) -> Result<(), DagMlError>
pub fn effective_params_for_node( &self, node_id: &NodeId, base_params: &BTreeMap<String, Value>, ) -> Result<BTreeMap<String, Value>, DagMlError>
Trait Implementations§
Source§impl Clone for VariantExecutionSpec
impl Clone for VariantExecutionSpec
Source§fn clone(&self) -> VariantExecutionSpec
fn clone(&self) -> VariantExecutionSpec
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 moreSource§impl Debug for VariantExecutionSpec
impl Debug for VariantExecutionSpec
Source§impl<'de> Deserialize<'de> for VariantExecutionSpec
impl<'de> Deserialize<'de> for VariantExecutionSpec
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<VariantExecutionSpec, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<VariantExecutionSpec, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for VariantExecutionSpec
impl PartialEq for VariantExecutionSpec
Source§fn eq(&self, other: &VariantExecutionSpec) -> bool
fn eq(&self, other: &VariantExecutionSpec) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for VariantExecutionSpec
impl Serialize for VariantExecutionSpec
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for VariantExecutionSpec
Auto Trait Implementations§
impl Freeze for VariantExecutionSpec
impl RefUnwindSafe for VariantExecutionSpec
impl Send for VariantExecutionSpec
impl Sync for VariantExecutionSpec
impl Unpin for VariantExecutionSpec
impl UnsafeUnpin for VariantExecutionSpec
impl UnwindSafe for VariantExecutionSpec
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