pub struct ExecutionPlan {
pub id: String,
pub graph_plan: GraphPlan,
pub campaign: CampaignSpec,
pub node_plans: BTreeMap<NodeId, NodePlan>,
pub controller_manifests: BTreeMap<ControllerId, ControllerManifest>,
pub variants: Vec<VariantPlan>,
pub fold_set: Option<FoldSet>,
pub graph_fingerprint: String,
pub campaign_fingerprint: String,
pub controller_fingerprint: String,
}Fields§
§id: String§graph_plan: GraphPlan§campaign: CampaignSpec§node_plans: BTreeMap<NodeId, NodePlan>§controller_manifests: BTreeMap<ControllerId, ControllerManifest>§variants: Vec<VariantPlan>§fold_set: Option<FoldSet>§graph_fingerprint: String§campaign_fingerprint: String§controller_fingerprint: StringImplementations§
Source§impl ExecutionPlan
impl ExecutionPlan
pub fn validate(&self) -> Result<(), DagMlError>
pub fn validate_parallel_controller_capabilities( &self, max_workers: usize, phase: Phase, ) -> Result<(), DagMlError>
pub fn node_parallel_levels_for_phase( &self, phase: Phase, ) -> Result<Vec<Vec<NodeId>>, DagMlError>
pub fn campaign_phase_schedule( &self, phase: Phase, ) -> Result<PhaseExecutionSchedule, DagMlError>
Sourcepub fn branch_view_for(&self, branch_id: &str) -> Option<&BranchViewPlan>
pub fn branch_view_for(&self, branch_id: &str) -> Option<&BranchViewPlan>
Returns the BranchViewPlan whose branch_id matches branch_id,
if any. The match is exact; callers that need fuzzy or prefix matching
must iterate self.campaign.branch_view_plans themselves.
Sourcepub fn branch_view_for_path(
&self,
branch_path: &[String],
) -> Option<&BranchViewPlan>
pub fn branch_view_for_path( &self, branch_path: &[String], ) -> Option<&BranchViewPlan>
Returns the BranchViewPlan for the deepest branch in branch_path
that has a matching plan, if any. The path is walked tip-first so the
closest enclosing branch wins; an empty path returns None. The
returned reference borrows the plan from the campaign; the caller can
.clone() it into a DataProviderViewSpec.branch_view field when
constructing a provider view for an in-branch node.
Trait Implementations§
Source§impl Clone for ExecutionPlan
impl Clone for ExecutionPlan
Source§fn clone(&self) -> ExecutionPlan
fn clone(&self) -> ExecutionPlan
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 ExecutionPlan
impl Debug for ExecutionPlan
Source§impl<'de> Deserialize<'de> for ExecutionPlan
impl<'de> Deserialize<'de> for ExecutionPlan
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<ExecutionPlan, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<ExecutionPlan, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for ExecutionPlan
impl PartialEq for ExecutionPlan
Source§fn eq(&self, other: &ExecutionPlan) -> bool
fn eq(&self, other: &ExecutionPlan) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for ExecutionPlan
impl Serialize for ExecutionPlan
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 ExecutionPlan
Auto Trait Implementations§
impl Freeze for ExecutionPlan
impl RefUnwindSafe for ExecutionPlan
impl Send for ExecutionPlan
impl Sync for ExecutionPlan
impl Unpin for ExecutionPlan
impl UnsafeUnpin for ExecutionPlan
impl UnwindSafe for ExecutionPlan
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