usbalbin / xo-api-client

Rust library for accessing Xen Orchestra through its websocket API
Apache License 2.0
0 stars 0 forks source link

How close do we want to stay to xo-servers types? #6

Open usbalbin opened 3 years ago

usbalbin commented 3 years ago

There are quite a lot of examples of things in the types sent by xo-server that might make sense in javascript/json but less so in rust. To get out the most out of rusts strong type system some translations might be needed.

I believe there are atleast three categories of types:

TODO describe better and add more cases

usbalbin commented 3 years ago

I believe this might be the source for a lot of the types https://github.com/vatesfr/xen-orchestra/blob/master/packages/xo-server/src/xapi-object-to-xo.mjs