notesmachine/server/nm-store/src/structs.rs

18 lines
489 B
Rust
Raw Normal View History

use chrono::{DateTime, Utc};
2020-11-03 02:32:01 +00:00
// use derive_builder::Builder;
use serde::{Deserialize, Serialize};
2020-11-03 02:32:01 +00:00
// use shrinkwraprs::Shrinkwrap;
use sqlx::{self, FromRow};
#[derive(Clone, Serialize, Deserialize, Debug, FromRow)]
2020-11-03 02:32:01 +00:00
pub struct RawZettle {
pub id: String,
pub content: String,
2020-11-03 02:32:01 +00:00
pub kind: String,
pub position: i64,
pub creation_date: DateTime<Utc>,
pub updated_date: DateTime<Utc>,
pub lastview_date: DateTime<Utc>,
pub deleted_date: Option<DateTime<Utc>>,
}