added IntoOwned trait and derive macro

This commit is contained in:
TotallyNot 2023-10-10 19:58:15 +02:00
parent 055900d3e0
commit 9b41a9844f
8 changed files with 268 additions and 107 deletions

View file

@ -1,5 +1,6 @@
#![warn(clippy::all, clippy::perf, clippy::style, clippy::suspicious)]
pub mod into_owned;
pub mod local;
pub mod send;
@ -32,6 +33,8 @@ use chrono::{DateTime, Utc};
use serde::{de::Error as DeError, Deserialize};
use thiserror::Error;
pub use into_owned::IntoOwned;
pub struct ApiResponse {
pub value: serde_json::Value,
}
@ -156,7 +159,7 @@ where
from: None,
to: None,
comment: None,
phantom: std::marker::PhantomData::default(),
phantom: Default::default(),
}
}
}