Removing serialization

This commit is contained in:
Dessalines 2024-12-13 08:50:14 -05:00
parent af543cc70b
commit b4ce1d9121
3 changed files with 6 additions and 14 deletions

View file

@ -184,15 +184,13 @@ pub struct DbUrl(pub(crate) Box<Url>);
/// The report combined id /// The report combined id
pub struct ReportCombinedId(i32); pub struct ReportCombinedId(i32);
#[derive(Debug, Copy, Clone, Hash, Eq, PartialEq, Serialize, Deserialize, Default)] #[derive(Debug, Copy, Clone, Hash, Eq, PartialEq, Default)]
#[cfg_attr(feature = "full", derive(DieselNewType, TS))] #[cfg_attr(feature = "full", derive(DieselNewType))]
#[cfg_attr(feature = "full", ts(export))]
/// The person content combined id /// The person content combined id
pub struct PersonContentCombinedId(i32); pub struct PersonContentCombinedId(i32);
#[derive(Debug, Copy, Clone, Hash, Eq, PartialEq, Serialize, Deserialize, Default)] #[derive(Debug, Copy, Clone, Hash, Eq, PartialEq, Default)]
#[cfg_attr(feature = "full", derive(DieselNewType, TS))] #[cfg_attr(feature = "full", derive(DieselNewType))]
#[cfg_attr(feature = "full", ts(export))]
/// The person saved combined id /// The person saved combined id
pub struct PersonSavedCombinedId(i32); pub struct PersonSavedCombinedId(i32);

View file

@ -4,11 +4,8 @@ use crate::schema::person_content_combined;
use chrono::{DateTime, Utc}; use chrono::{DateTime, Utc};
#[cfg(feature = "full")] #[cfg(feature = "full")]
use i_love_jesus::CursorKeysModule; use i_love_jesus::CursorKeysModule;
use serde::{Deserialize, Serialize};
use serde_with::skip_serializing_none;
#[skip_serializing_none] #[derive(PartialEq, Eq, Debug, Clone)]
#[derive(PartialEq, Eq, Serialize, Deserialize, Debug, Clone)]
#[cfg_attr( #[cfg_attr(
feature = "full", feature = "full",
derive(Identifiable, Queryable, Selectable, CursorKeysModule) derive(Identifiable, Queryable, Selectable, CursorKeysModule)

View file

@ -4,11 +4,8 @@ use crate::schema::person_saved_combined;
use chrono::{DateTime, Utc}; use chrono::{DateTime, Utc};
#[cfg(feature = "full")] #[cfg(feature = "full")]
use i_love_jesus::CursorKeysModule; use i_love_jesus::CursorKeysModule;
use serde::{Deserialize, Serialize};
use serde_with::skip_serializing_none;
#[skip_serializing_none] #[derive(PartialEq, Eq, Debug, Clone)]
#[derive(PartialEq, Eq, Serialize, Deserialize, Debug, Clone)]
#[cfg_attr( #[cfg_attr(
feature = "full", feature = "full",
derive(Identifiable, Queryable, Selectable, CursorKeysModule) derive(Identifiable, Queryable, Selectable, CursorKeysModule)