added IntoOwned trait and derive macro
This commit is contained in:
parent
055900d3e0
commit
9b41a9844f
8 changed files with 268 additions and 107 deletions
|
|
@ -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(),
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue