pub struct ReducerSpec {
pub column: String,
pub kind: ReducerKind,
}Expand description
A reducer as written, with its column given as text.
Fields§
§column: StringStat column name, or a bare vector or histogram label for its magnitude or total.
kind: ReducerKindFold the reducer applies.
Implementations§
Source§impl ReducerSpec
impl ReducerSpec
Sourcepub fn check_label(&self, stats: &[StatDescriptor]) -> Result<(), ReducerError>
pub fn check_label(&self, stats: &[StatDescriptor]) -> Result<(), ReducerError>
Checks the column against the stat labels a model declares.
A column passes when it is a label, or a label followed by . and a component. ReducerPlan::bind checks
the column again once a build provides the full column list.
§Errors
Returns ReducerError::UnknownColumn for a column that does not start with a stat label.
Trait Implementations§
Source§impl Clone for ReducerSpec
impl Clone for ReducerSpec
Source§impl Debug for ReducerSpec
impl Debug for ReducerSpec
Source§impl FromStr for ReducerSpec
impl FromStr for ReducerSpec
Source§impl PartialEq for ReducerSpec
impl PartialEq for ReducerSpec
impl StructuralPartialEq for ReducerSpec
Auto Trait Implementations§
impl Freeze for ReducerSpec
impl RefUnwindSafe for ReducerSpec
impl Send for ReducerSpec
impl Sync for ReducerSpec
impl Unpin for ReducerSpec
impl UnsafeUnpin for ReducerSpec
impl UnwindSafe for ReducerSpec
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