11pub ( crate ) mod space;
22
33pub mod models {
4+ use reqwest:: Body ;
45 use serde_json:: { json, Value } ;
56 use serde:: { Deserialize , Serialize } ;
7+ use crate :: model:: space:: space:: Space ;
68
79 #[ derive( Default , Debug , Clone , PartialEq , Serialize , Deserialize ) ]
810 #[ allow( non_snake_case) ]
@@ -14,20 +16,39 @@ pub mod models {
1416 #[ derive( Default , Debug , Clone , PartialEq , Serialize , Deserialize ) ]
1517 #[ allow( non_snake_case) ]
1618 pub struct Content {
17- id : String ,
19+ pub id : String ,
1820 #[ serde( rename( serialize = "type" ) ) ]
1921 #[ serde( rename( deserialize = "type" ) ) ]
20- Type : String ,
21- status : String ,
22- title : String ,
22+ pub Type : String ,
23+ pub status : String ,
24+ pub title : String ,
25+ pub body : PageBody ,
2326 #[ serde( skip_serializing_if = "Option::is_none" ) ]
24- extensions : Option < Extentions < String > > ,
27+ pub extensions : Option < Extentions < String > > ,
2528 #[ serde( rename( deserialize = "_expandable" ) ) ]
26- _expandable : Expandable ,
27- version : Version ,
29+ pub _expandable : Expandable ,
30+ pub version : Version ,
31+ pub space : Space ,
2832 #[ serde( rename( deserialize = "history" ) ) ]
29- history : Option < CntHistory > ,
30- _links : ContentLinks ,
33+ pub history : Option < CntHistory > ,
34+ pub _links : ContentLinks ,
35+ pub ancetors : Vec < CntAncestor > ,
36+ }
37+
38+ #[ derive( Default , Debug , Clone , PartialEq , Serialize , Deserialize ) ]
39+ #[ allow( non_snake_case) ]
40+ pub struct CntAncestor {
41+ pub id : String ,
42+ #[ serde( rename( serialize = "type" ) ) ]
43+ #[ serde( rename( deserialize = "type" ) ) ]
44+ pub Type : String ,
45+ pub status : String ,
46+ pub title : String ,
47+ #[ serde( skip_serializing_if = "Option::is_none" ) ]
48+ pub extensions : Option < Extentions < String > > ,
49+ #[ serde( rename( deserialize = "_expandable" ) ) ]
50+ pub _expandable : Expandable ,
51+ pub _links : ContentLinks ,
3152 }
3253
3354 #[ derive( Default , Debug , Clone , PartialEq , Serialize , Deserialize ) ]
0 commit comments