refactor(npf): reorder post's properties
This commit is contained in:
@@ -9,6 +9,7 @@ pub struct Post {
|
|||||||
object_type: String,
|
object_type: String,
|
||||||
pub id: u64,
|
pub id: u64,
|
||||||
pub id_string: String,
|
pub id_string: String,
|
||||||
|
pub content: Vec<super::content_blocks::BlockValue>,
|
||||||
pub r#type: Option<String>,
|
pub r#type: Option<String>,
|
||||||
pub tumblelog_uuid: Option<String>,
|
pub tumblelog_uuid: Option<String>,
|
||||||
pub original_type: Option<String>,
|
pub original_type: Option<String>,
|
||||||
@@ -37,7 +38,6 @@ pub struct Post {
|
|||||||
pub post_author_avatar: Option<super::objects::Avatar>,
|
pub post_author_avatar: Option<super::objects::Avatar>,
|
||||||
pub liked: Option<bool>,
|
pub liked: Option<bool>,
|
||||||
pub note_count: Option<u64>,
|
pub note_count: Option<u64>,
|
||||||
pub content: Vec<super::content_blocks::BlockValue>,
|
|
||||||
pub layout: Vec<super::layout_blocks::BlockValue>,
|
pub layout: Vec<super::layout_blocks::BlockValue>,
|
||||||
pub trail: Vec<super::objects::ReblogTrail>,
|
pub trail: Vec<super::objects::ReblogTrail>,
|
||||||
pub can_line: Option<bool>,
|
pub can_line: Option<bool>,
|
||||||
@@ -100,9 +100,10 @@ impl Post {
|
|||||||
fn default() -> Self {
|
fn default() -> Self {
|
||||||
Self {
|
Self {
|
||||||
object_type: String::from("post"),
|
object_type: String::from("post"),
|
||||||
r#type: None,
|
|
||||||
id: 0,
|
|
||||||
id_string: String::from("0"),
|
id_string: String::from("0"),
|
||||||
|
content: vec![],
|
||||||
|
id: 0,
|
||||||
|
r#type: None,
|
||||||
tumblelog_uuid: None,
|
tumblelog_uuid: None,
|
||||||
original_type: None,
|
original_type: None,
|
||||||
is_blocks_post_format: None,
|
is_blocks_post_format: None,
|
||||||
@@ -130,7 +131,6 @@ impl Post {
|
|||||||
post_author_avatar: None,
|
post_author_avatar: None,
|
||||||
liked: None,
|
liked: None,
|
||||||
note_count: None,
|
note_count: None,
|
||||||
content: vec![],
|
|
||||||
layout: vec![],
|
layout: vec![],
|
||||||
trail: vec![],
|
trail: vec![],
|
||||||
can_line: None,
|
can_line: None,
|
||||||
|
|||||||
Reference in New Issue
Block a user