order struct members asc

This commit is contained in:
postscriptum 2025-07-02 20:43:12 +03:00
parent 3aba70cb31
commit e85a4bb7d0

View file

@ -12,10 +12,10 @@ use tag::Tag;
#[derive(Deserialize, Debug)] #[derive(Deserialize, Debug)]
#[serde(rename_all = "camelCase")] #[serde(rename_all = "camelCase")]
pub struct Post { pub struct Post {
#[serde(rename = "type", deserialize_with = "ptype")]
pub ptype: Ptype,
pub attachment: Option<Vec<Attachment>>, pub attachment: Option<Vec<Attachment>>,
pub id: String, pub id: String,
#[serde(rename = "type", deserialize_with = "ptype")]
pub ptype: Ptype,
#[serde(default, deserialize_with = "time")] #[serde(default, deserialize_with = "time")]
pub published: DateTime<Utc>, pub published: DateTime<Utc>,
pub source_content: Option<String>, pub source_content: Option<String>,