@m-asama --- 2024-02-05 05:07:40 UTC
slack digest のテスト。
struct Msg {
user: String,
text: String,
html: String,
ts: String,
datetime: String,
}
#[derive(Debug, Clone, PartialEq, Eq, Serialize, Deserialize)]
struct Thread {
root: Msg,
messages: Vec<Msg>,
}
#[derive(Debug, Clone, PartialEq, Eq, Serialize, Deserialize)]
struct MailData {
channel_messages: Vec<Msg>,
threads: Vec<Thread>,
}
こんな感じのコードを書いても大丈夫?