mirror of
https://codeberg.org/postscriptum/snac2nex.git
synced 2026-03-31 13:15:27 +00:00
order struct members asc
This commit is contained in:
parent
3aba70cb31
commit
e85a4bb7d0
1 changed files with 2 additions and 2 deletions
|
|
@ -12,10 +12,10 @@ use tag::Tag;
|
|||
#[derive(Deserialize, Debug)]
|
||||
#[serde(rename_all = "camelCase")]
|
||||
pub struct Post {
|
||||
#[serde(rename = "type", deserialize_with = "ptype")]
|
||||
pub ptype: Ptype,
|
||||
pub attachment: Option<Vec<Attachment>>,
|
||||
pub id: String,
|
||||
#[serde(rename = "type", deserialize_with = "ptype")]
|
||||
pub ptype: Ptype,
|
||||
#[serde(default, deserialize_with = "time")]
|
||||
pub published: DateTime<Utc>,
|
||||
pub source_content: Option<String>,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue