usbalbin / xo-api-client

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

Add macros #11

Closed usbalbin closed 2 years ago

usbalbin commented 2 years ago

Add procedure_args! and procedure_object! to make it easier to specify arguments to rpc procedures. Also add internal macros to reduce boilderplate.

This PR also changes both filter and limit arguments for get_vms and get_snapshots to be impl Into<Option<_>> instead of Option<_> which might cause some inference errors.