feat: seaorm

This commit is contained in:
Ahmet Kaan GÜMÜŞ 2024-12-02 23:56:43 +03:00
parent 36c72cee4a
commit 40149b372d
20 changed files with 236 additions and 87 deletions

View file

@ -0,0 +1,13 @@
use serde::{Deserialize, Serialize};
#[derive(Debug, Serialize, Deserialize)]
pub struct Post {
pub poster_email: String,
pub post: String,
}
impl Post {
pub async fn new(poster_email: String, post: String) -> Self {
Self { poster_email, post }
}
}