@@ -71,10 +71,26 @@ pub mod models {
7171 context : String ,
7272 }
7373
74+ #[ derive( Default , Debug , Clone , PartialEq , Serialize , Deserialize ) ]
75+ #[ allow( non_snake_case) ]
76+ pub struct ContentArrPage {
77+ id : String ,
78+ #[ serde( rename( serialize = "type" ) ) ]
79+ #[ serde( rename( deserialize = "type" ) ) ]
80+ Type : String ,
81+ status : String ,
82+ title : String ,
83+ #[ serde( skip_serializing_if = "Option::is_none" ) ]
84+ extensions : Option < Extentions < String > > ,
85+ #[ serde( rename( deserialize = "_expandable" ) ) ]
86+ _expandable : Expandable ,
87+ _links : ContentLinks ,
88+ }
89+
7490 #[ derive( Default , Debug , Clone , PartialEq , Serialize , Deserialize ) ]
7591 #[ allow( non_snake_case) ]
7692 pub struct ContentResponse {
77- results : Vec < Content > ,
93+ results : Vec < ContentArrPage > ,
7894 start : i8 ,
7995 limit : i8 ,
8096 size : i8 ,
@@ -121,27 +137,6 @@ pub mod models {
121137 pub ( crate ) id : i32 ,
122138 }
123139
124- // One content page
125- #[ derive( Default , Debug , Clone , PartialEq , Serialize , Deserialize ) ]
126- #[ serde( rename_all = "camelCase" ) ]
127- pub struct CntPage {
128- pub id : String ,
129- #[ serde( rename = "type" ) ]
130- pub type_field : String ,
131- pub status : String ,
132- pub title : String ,
133- pub space : CntSpace ,
134- pub history : CntHistory ,
135- pub version : Version ,
136- pub extensions : Extentions < String > ,
137- #[ serde( rename = "_links" ) ]
138- #[ serde( skip) ]
139- pub links : Links ,
140- #[ serde( skip) ]
141- // #[serde(rename = "_expandable")]
142- pub expandable : Expandable ,
143- }
144-
145140 #[ derive( Default , Debug , Clone , PartialEq , Serialize , Deserialize ) ]
146141 #[ serde( rename_all = "camelCase" ) ]
147142 pub struct CntSpace {
0 commit comments