From ba3b3413d0977c1805c7c417aab8214955f9eca1 Mon Sep 17 00:00:00 2001 From: jakubmanczak Date: Wed, 25 Feb 2026 21:38:01 +0100 Subject: [PATCH] quote&line stub --- src/quotes/lines.rs | 11 +++++++++-- src/quotes/mod.rs | 16 ++++++++++++++-- 2 files changed, 23 insertions(+), 4 deletions(-) diff --git a/src/quotes/lines.rs b/src/quotes/lines.rs index 1f67f82..155e7cf 100644 --- a/src/quotes/lines.rs +++ b/src/quotes/lines.rs @@ -1,2 +1,9 @@ -#[allow(unused)] -pub struct QuoteLine; +use uuid::Uuid; + +use crate::persons::{Person, names::Name}; + +pub struct QuoteLine { + pub id: Uuid, + pub attribution: (Name, Person), + pub content: String, +} diff --git a/src/quotes/mod.rs b/src/quotes/mod.rs index e306c0a..9bd699b 100644 --- a/src/quotes/mod.rs +++ b/src/quotes/mod.rs @@ -1,4 +1,16 @@ +use chrono::{DateTime, Utc}; +use uuid::Uuid; + +use crate::quotes::lines::QuoteLine; + pub mod lines; -#[allow(unused)] -pub struct Quote; +pub struct Quote { + pub id: Uuid, + pub lines: Vec, + pub timestamp: DateTime, + pub location: Option, + pub context: Option, + pub created_by: Uuid, + pub public: bool, +}