webcomment/src/server/api/queries.rs

16 lines
266 B
Rust
Raw Normal View History

2023-01-11 21:56:32 +00:00
use serde::Deserialize;
#[derive(Deserialize)]
pub struct CommentsByTopic {
pub mutation_token: Option<String>,
pub topic: String,
}
#[derive(Deserialize)]
pub struct NewComment {
pub author: String,
pub email: String,
pub text: String,
pub topic: String,
}