quote&line stub
This commit is contained in:
@@ -1,2 +1,9 @@
|
|||||||
#[allow(unused)]
|
use uuid::Uuid;
|
||||||
pub struct QuoteLine;
|
|
||||||
|
use crate::persons::{Person, names::Name};
|
||||||
|
|
||||||
|
pub struct QuoteLine {
|
||||||
|
pub id: Uuid,
|
||||||
|
pub attribution: (Name, Person),
|
||||||
|
pub content: String,
|
||||||
|
}
|
||||||
|
|||||||
@@ -1,4 +1,16 @@
|
|||||||
|
use chrono::{DateTime, Utc};
|
||||||
|
use uuid::Uuid;
|
||||||
|
|
||||||
|
use crate::quotes::lines::QuoteLine;
|
||||||
|
|
||||||
pub mod lines;
|
pub mod lines;
|
||||||
|
|
||||||
#[allow(unused)]
|
pub struct Quote {
|
||||||
pub struct Quote;
|
pub id: Uuid,
|
||||||
|
pub lines: Vec<QuoteLine>,
|
||||||
|
pub timestamp: DateTime<Utc>,
|
||||||
|
pub location: Option<String>,
|
||||||
|
pub context: Option<String>,
|
||||||
|
pub created_by: Uuid,
|
||||||
|
pub public: bool,
|
||||||
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user