pub struct ControllerManifest {Show 13 fields
pub controller_id: ControllerId,
pub controller_version: String,
pub operator_kind: NodeKind,
pub priority: u32,
pub supported_phases: BTreeSet<Phase>,
pub input_ports: Vec<PortSpec>,
pub output_ports: Vec<PortSpec>,
pub data_requirements: Option<Value>,
pub capabilities: BTreeSet<ControllerCapability>,
pub operator_selectors: Vec<OperatorSelector>,
pub fit_scope: ControllerFitScope,
pub rng_policy: RngPolicy,
pub artifact_policy: ArtifactPolicy,
}Fields§
§controller_id: ControllerId§controller_version: String§operator_kind: NodeKind§priority: u32§supported_phases: BTreeSet<Phase>§input_ports: Vec<PortSpec>§output_ports: Vec<PortSpec>§data_requirements: Option<Value>§capabilities: BTreeSet<ControllerCapability>§operator_selectors: Vec<OperatorSelector>§fit_scope: ControllerFitScope§rng_policy: RngPolicy§artifact_policy: ArtifactPolicyImplementations§
Source§impl ControllerManifest
impl ControllerManifest
pub fn validate(&self) -> Result<(), DagMlError>
pub fn supports_phase(&self, phase: Phase) -> bool
pub fn supports_parallel_invocation(&self) -> bool
pub fn supports_fit_influence_policy(&self, policy: FitInfluencePolicy) -> bool
pub fn model_input_spec(&self) -> Result<Option<ModelInputSpec>, DagMlError>
Trait Implementations§
Source§impl Clone for ControllerManifest
impl Clone for ControllerManifest
Source§fn clone(&self) -> ControllerManifest
fn clone(&self) -> ControllerManifest
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 ControllerManifest
impl Debug for ControllerManifest
Source§impl<'de> Deserialize<'de> for ControllerManifest
impl<'de> Deserialize<'de> for ControllerManifest
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<ControllerManifest, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<ControllerManifest, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for ControllerManifest
Source§impl PartialEq for ControllerManifest
impl PartialEq for ControllerManifest
Source§fn eq(&self, other: &ControllerManifest) -> bool
fn eq(&self, other: &ControllerManifest) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for ControllerManifest
impl Serialize for ControllerManifest
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 ControllerManifest
Auto Trait Implementations§
impl Freeze for ControllerManifest
impl RefUnwindSafe for ControllerManifest
impl Send for ControllerManifest
impl Sync for ControllerManifest
impl Unpin for ControllerManifest
impl UnsafeUnpin for ControllerManifest
impl UnwindSafe for ControllerManifest
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.