CommentCalculated

Type Alias CommentCalculated 

Source
pub type CommentCalculated<Meta> = Comment<Meta, Vec<Calculation>>;
Expand description

Calculated Comment, contains the results along with how we go to them. Use get_reply.

Aliased Type§

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

Fields§

§meta: Meta

Metadata (generic)

§calculation_list: Vec<Calculation>

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> CommentCalculated<Meta>

Source

pub fn get_reply(&self) -> String

Does the formatting for the reply using calculation_result.