rust_forum/src/feature/post.rs

10 lines
212 B
Rust
Raw Normal View History

2024-12-04 23:17:19 +03:00
use chrono::{DateTime, Utc};
2024-12-02 23:56:43 +03:00
use serde::{Deserialize, Serialize};
#[derive(Debug, Serialize, Deserialize)]
pub struct Post {
2024-12-04 23:17:19 +03:00
pub creation_time: DateTime<Utc>,
pub poster_id: i64,
2024-12-02 23:56:43 +03:00
pub post: String,
}