refactor(npf): reorder post's properties

This commit is contained in:
Gustavo "Guz" L. de Mello
2024-04-29 15:30:49 -03:00
parent 5593bb2107
commit fe2d7ad3b9

View File

@@ -9,6 +9,7 @@ pub struct Post {
object_type: String,
pub id: u64,
pub id_string: String,
pub content: Vec<super::content_blocks::BlockValue>,
pub r#type: Option<String>,
pub tumblelog_uuid: Option<String>,
pub original_type: Option<String>,
@@ -37,7 +38,6 @@ pub struct Post {
pub post_author_avatar: Option<super::objects::Avatar>,
pub liked: Option<bool>,
pub note_count: Option<u64>,
pub content: Vec<super::content_blocks::BlockValue>,
pub layout: Vec<super::layout_blocks::BlockValue>,
pub trail: Vec<super::objects::ReblogTrail>,
pub can_line: Option<bool>,
@@ -100,9 +100,10 @@ impl Post {
fn default() -> Self {
Self {
object_type: String::from("post"),
r#type: None,
id: 0,
id_string: String::from("0"),
content: vec![],
id: 0,
r#type: None,
tumblelog_uuid: None,
original_type: None,
is_blocks_post_format: None,
@@ -130,7 +131,6 @@ impl Post {
post_author_avatar: None,
liked: None,
note_count: None,
content: vec![],
layout: vec![],
trail: vec![],
can_line: None,