forked from jmug/stoatchat
24 lines
487 B
Rust
24 lines
487 B
Rust
use serde::{Deserialize, Serialize};
|
|
|
|
#[derive(Serialize, Deserialize, Debug, Clone)]
|
|
pub struct Create {
|
|
pub id: String,
|
|
pub nonce: Option<String>,
|
|
pub channel: String,
|
|
pub author: String,
|
|
pub content: String,
|
|
}
|
|
|
|
#[derive(Serialize, Deserialize, Debug, Clone)]
|
|
pub struct Edit {
|
|
pub id: String,
|
|
pub channel: String,
|
|
pub author: String,
|
|
pub content: String,
|
|
}
|
|
|
|
#[derive(Serialize, Deserialize, Debug, Clone)]
|
|
pub struct Delete {
|
|
pub id: String,
|
|
}
|