Trait hdk::prelude::action::ActionUnweighed
[−]pub trait ActionUnweighed {
type Weighed: ActionWeighed;
type Weight: Default;
fn weighed(self, weight: Self::Weight) -> Self::Weighed;
}
Expand description
A trait to unify the “inner” parts of an Action, i.e. the structs inside the Action enum’s variants. This trait is used for the “unweighed” version of each struct, i.e. the version with weight information erased.
Action types with no weight are considered “weighed” and “unweighed” at the same time, but types with weight have distinct types for the weighed and unweighed versions.