pub struct ReductionPlan {
pub role: ReductionRole,
pub axis: ReductionAxis,
pub input_unit_level: EntityUnitLevel,
pub output_unit_level: EntityUnitLevel,
pub method: ReductionMethod,
pub weight_source: AggregationWeights,
pub task_compatibility: ReductionTaskCompatibility,
pub custom_controller: Option<AggregationControllerSpec>,
pub params: BTreeMap<String, Value>,
}Fields§
§role: ReductionRole§axis: ReductionAxis§input_unit_level: EntityUnitLevel§output_unit_level: EntityUnitLevel§method: ReductionMethod§weight_source: AggregationWeights§task_compatibility: ReductionTaskCompatibility§custom_controller: Option<AggregationControllerSpec>§params: BTreeMap<String, Value>Implementations§
Source§impl ReductionPlan
impl ReductionPlan
pub fn validate(&self) -> Result<(), DagMlError>
Trait Implementations§
Source§impl Clone for ReductionPlan
impl Clone for ReductionPlan
Source§fn clone(&self) -> ReductionPlan
fn clone(&self) -> ReductionPlan
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 ReductionPlan
impl Debug for ReductionPlan
Source§impl Default for ReductionPlan
impl Default for ReductionPlan
Source§fn default() -> ReductionPlan
fn default() -> ReductionPlan
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ReductionPlan
impl<'de> Deserialize<'de> for ReductionPlan
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<ReductionPlan, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<ReductionPlan, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for ReductionPlan
Source§impl PartialEq for ReductionPlan
impl PartialEq for ReductionPlan
Source§fn eq(&self, other: &ReductionPlan) -> bool
fn eq(&self, other: &ReductionPlan) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for ReductionPlan
impl Serialize for ReductionPlan
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 ReductionPlan
Auto Trait Implementations§
impl Freeze for ReductionPlan
impl RefUnwindSafe for ReductionPlan
impl Send for ReductionPlan
impl Sync for ReductionPlan
impl Unpin for ReductionPlan
impl UnsafeUnpin for ReductionPlan
impl UnwindSafe for ReductionPlan
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.