pub struct VariantPlan {
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 VariantPlan
impl VariantPlan
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>
pub fn param_override_targets(&self) -> Result<BTreeSet<NodeId>, DagMlError>
Trait Implementations§
Source§impl Clone for VariantPlan
impl Clone for VariantPlan
Source§fn clone(&self) -> VariantPlan
fn clone(&self) -> VariantPlan
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 VariantPlan
impl Debug for VariantPlan
Source§impl<'de> Deserialize<'de> for VariantPlan
impl<'de> Deserialize<'de> for VariantPlan
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<VariantPlan, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<VariantPlan, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for VariantPlan
impl PartialEq for VariantPlan
Source§fn eq(&self, other: &VariantPlan) -> bool
fn eq(&self, other: &VariantPlan) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for VariantPlan
impl Serialize for VariantPlan
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 VariantPlan
Auto Trait Implementations§
impl Freeze for VariantPlan
impl RefUnwindSafe for VariantPlan
impl Send for VariantPlan
impl Sync for VariantPlan
impl Unpin for VariantPlan
impl UnsafeUnpin for VariantPlan
impl UnwindSafe for VariantPlan
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