CommentExtracted

Type Alias CommentExtracted 

Source
pub type CommentExtracted<Meta> = Comment<Meta, Vec<CalculationJob>>;
Expand description

Extracted Comment, contains the calculations to be done. Use calc.

Aliased Type§

pub struct CommentExtracted<Meta> {
    pub meta: Meta,
    pub calculation_list: Vec<CalculationJob>,
    pub notify: Option<String>,
    pub status: Status,
    pub commands: Commands,
    pub max_length: usize,
}

Fields§

§meta: Meta

Metadata (generic)

§calculation_list: Vec<CalculationJob>

Data for the current step

§notify: Option<String>

If Some will prepend a “Hey {string}!” to the reply.

§status: Status§commands: Commands§max_length: usize

How long the reply may at most be

Implementations§

Source§

impl<Meta> CommentExtracted<Meta>

Source

pub fn calc(self) -> CommentCalculated<Meta>

Does the calculations using calculation_tasks.