rust-secure-axum-rest/src/models/post.rs
2025-05-15 18:27:51 +02:00

9 lines
No EOL
211 B
Rust

use serde::{Deserialize, Serialize};
#[derive(Deserialize, Serialize)]
pub struct Post {
pub(crate) id: i32,
pub(crate) user_id: Option<i32>,
pub(crate) title: String,
pub(crate) body: String,
}