fix: Clone derivation just in case
This commit is contained in:
@@ -12,7 +12,7 @@ impl<'a> NPF<'a> {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#[derive(Debug, Deserialize, Serialize)]
|
#[derive(Debug, Deserialize, Serialize, Clone)]
|
||||||
pub enum ContentType<'a> {
|
pub enum ContentType<'a> {
|
||||||
#[serde(borrow)]
|
#[serde(borrow)]
|
||||||
Text(content_types::Text<'a>),
|
Text(content_types::Text<'a>),
|
||||||
@@ -33,7 +33,7 @@ pub mod content_types {
|
|||||||
|
|
||||||
pub mod text {
|
pub mod text {
|
||||||
use serde::{Deserialize, Serialize};
|
use serde::{Deserialize, Serialize};
|
||||||
#[derive(Debug, Deserialize, Serialize)]
|
#[derive(Debug, Clone, Deserialize, Serialize)]
|
||||||
pub enum Subtypes {
|
pub enum Subtypes {
|
||||||
Heading1,
|
Heading1,
|
||||||
Heading2,
|
Heading2,
|
||||||
@@ -66,7 +66,7 @@ pub mod content_types {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#[derive(Debug, Deserialize, Serialize)]
|
#[derive(Debug, Deserialize, Serialize, Clone)]
|
||||||
pub struct Text<'a> {
|
pub struct Text<'a> {
|
||||||
r#type: &'a str,
|
r#type: &'a str,
|
||||||
pub text: String,
|
pub text: String,
|
||||||
@@ -95,7 +95,7 @@ pub mod content_types {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#[derive(Debug, Deserialize, Serialize)]
|
#[derive(Debug, Deserialize, Serialize, Clone)]
|
||||||
pub struct Image<'a> {
|
pub struct Image<'a> {
|
||||||
r#type: &'a str,
|
r#type: &'a str,
|
||||||
pub media: Vec<objects::Media>,
|
pub media: Vec<objects::Media>,
|
||||||
@@ -130,7 +130,7 @@ pub mod content_types {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#[derive(Debug, Deserialize, Serialize)]
|
#[derive(Debug, Deserialize, Serialize, Clone)]
|
||||||
pub struct Link<'a> {
|
pub struct Link<'a> {
|
||||||
r#type: &'a str,
|
r#type: &'a str,
|
||||||
pub url: String,
|
pub url: String,
|
||||||
@@ -168,7 +168,7 @@ pub mod content_types {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#[derive(Debug, Deserialize, Serialize)]
|
#[derive(Debug, Deserialize, Serialize, Clone)]
|
||||||
pub struct Audio<'a> {
|
pub struct Audio<'a> {
|
||||||
r#type: &'a str,
|
r#type: &'a str,
|
||||||
pub url: Option<String>,
|
pub url: Option<String>,
|
||||||
@@ -234,7 +234,7 @@ pub mod content_types {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#[derive(Debug, Deserialize, Serialize)]
|
#[derive(Debug, Deserialize, Serialize, Clone)]
|
||||||
pub struct Video<'a> {
|
pub struct Video<'a> {
|
||||||
r#type: &'a str,
|
r#type: &'a str,
|
||||||
pub media: Option<objects::Media>,
|
pub media: Option<objects::Media>,
|
||||||
@@ -312,7 +312,7 @@ pub mod objects {
|
|||||||
pub url: String,
|
pub url: String,
|
||||||
}
|
}
|
||||||
|
|
||||||
#[derive(Debug, Deserialize, Serialize)]
|
#[derive(Debug, Clone, Deserialize, Serialize)]
|
||||||
pub struct Media {
|
pub struct Media {
|
||||||
pub r#type: String,
|
pub r#type: String,
|
||||||
pub url: String,
|
pub url: String,
|
||||||
@@ -321,7 +321,7 @@ pub mod objects {
|
|||||||
pub poster: Option<MediaPoster>,
|
pub poster: Option<MediaPoster>,
|
||||||
}
|
}
|
||||||
|
|
||||||
#[derive(Debug, Deserialize, Serialize)]
|
#[derive(Debug, Clone, Deserialize, Serialize)]
|
||||||
pub struct MediaPoster {
|
pub struct MediaPoster {
|
||||||
pub r#type: String,
|
pub r#type: String,
|
||||||
pub url: String,
|
pub url: String,
|
||||||
@@ -329,7 +329,7 @@ pub mod objects {
|
|||||||
pub height: Option<String>,
|
pub height: Option<String>,
|
||||||
}
|
}
|
||||||
|
|
||||||
#[derive(Debug, Deserialize, Serialize)]
|
#[derive(Debug, Clone, Deserialize, Serialize)]
|
||||||
pub struct Attribution {
|
pub struct Attribution {
|
||||||
pub r#type: String,
|
pub r#type: String,
|
||||||
pub url: String,
|
pub url: String,
|
||||||
@@ -337,7 +337,7 @@ pub mod objects {
|
|||||||
pub blug: Blog,
|
pub blug: Blog,
|
||||||
}
|
}
|
||||||
|
|
||||||
#[derive(Debug, Deserialize, Serialize)]
|
#[derive(Debug, Clone, Deserialize, Serialize)]
|
||||||
pub struct Post {
|
pub struct Post {
|
||||||
pub id: u64,
|
pub id: u64,
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user