raisfast 0.2.19

The last backend you'll ever need. Rust-powered headless CMS with built-in blog, ecommerce, wallet, payment and 4 plugin engines.
1
2
3
4
5
6
7
8
9
10
11
12
//! Comment-related commands

use crate::types::snowflake_id::SnowflakeId;
/// Create a comment
pub struct CreateCommentCmd {
    pub post_id: SnowflakeId,
    pub created_by: Option<i64>,
    pub nickname: Option<String>,
    pub email: Option<String>,
    pub content: String,
    pub parent_id: Option<i64>,
}