@@ -13,6 +13,27 @@ pub mod space {
1313 pub _expandable : SpaceExpandable
1414 }
1515
16+ #[ derive( Deserialize , Serialize , Debug ) ]
17+ pub struct Spaces {
18+ pub results : Vec < SpaceResult > ,
19+ pub start : i8 ,
20+ pub limit : i8 ,
21+ pub size : i8 ,
22+ pub _links : SpacesLinks ,
23+ }
24+
25+ #[ derive( Deserialize , Serialize , Debug ) ]
26+ pub struct SpaceResult {
27+ pub id : i64 ,
28+ pub key : String ,
29+ pub name : String ,
30+ #[ serde( rename( serialize = "type" ) ) ]
31+ #[ serde( rename( deserialize = "type" ) ) ]
32+ pub ttype : String ,
33+ pub _links : SpaceResultLinks ,
34+ pub _expandable : SpaceExpandable
35+ }
36+
1637 #[ derive( Deserialize , Serialize , Debug ) ]
1738 pub struct SpaceLinks {
1839 pub webui : String ,
@@ -26,6 +47,27 @@ pub mod space {
2647 pub sself : String ,
2748 }
2849
50+ #[ derive( Deserialize , Serialize , Debug ) ]
51+ pub struct SpaceResultLinks {
52+ pub webui : String ,
53+ #[ serde( rename( serialize = "self" ) ) ]
54+ #[ serde( rename( deserialize = "self" ) ) ]
55+ #[ serde( skip_serializing_if = "String::is_empty" ) ]
56+ pub sself : String ,
57+ }
58+
59+ #[ derive( Deserialize , Serialize , Debug ) ]
60+ pub struct SpacesLinks {
61+ #[ serde( rename( serialize = "self" ) ) ]
62+ #[ serde( rename( deserialize = "self" ) ) ]
63+ #[ serde( skip_serializing_if = "String::is_empty" ) ]
64+ pub sself : String ,
65+ pub next : String ,
66+ pub base : String ,
67+ #[ serde( skip_serializing_if = "String::is_empty" ) ]
68+ pub context : String ,
69+ }
70+
2971 #[ derive( Default , Debug , Clone , PartialEq , Serialize , Deserialize ) ]
3072 #[ allow( non_snake_case) ]
3173 pub struct SpaceExpandable {
0 commit comments