Skip to main content

notes_tools/
note.rs

1//! The persisted note entity.
2
3use chrono::{DateTime, Utc};
4use serde::{Deserialize, Serialize};
5
6#[derive(Debug, Clone, PartialEq, Eq, Serialize, Deserialize)]
7pub struct Note {
8    pub id: String,
9    pub owner_id: String,
10    pub family_id: Option<String>,
11    pub title: String,
12    pub content: String,
13    pub created_at: DateTime<Utc>,
14    pub updated_at: DateTime<Utc>,
15}