slack_morphism/models/messages/
templates.rs

1
2
3
4
5
6
7
8
9
10
use crate::blocks::SlackBlock;
use crate::SlackMessageContent;

pub trait SlackMessageTemplate {
    fn render_template(&self) -> SlackMessageContent;
}

pub trait SlackBlocksTemplate {
    fn render_template(&self) -> Vec<SlackBlock>;
}