5
0
mirror of git://git.proxmox.com/git/proxmox-backup.git synced 2025-01-05 09:17:59 +03:00
proxmox-backup/pbs-api-types
Christian Ebner 00254d60e3 api types: version: implement traits to allow for version comparison
Derive and implement the traits to allow comparison of two
`ApiVersion` instances for more direct and easy api version
comparisons. Further, add some basic test cases to reduce risk of
regressions.

This is useful for e.g. feature compatibility checks by comparing api
versions of remote instances.

Example comparison:
```
api_version >= ApiVersion::new(3, 3, 0)
```

Signed-off-by: Christian Ebner <c.ebner@proxmox.com>
2024-12-02 15:27:37 +01:00
..
src api types: version: implement traits to allow for version comparison 2024-12-02 15:27:37 +01:00
tests move api-types tests to api-types and drop vec![] macro 2024-01-10 10:13:45 +01:00
Cargo.toml api-types: remove unused lazy_static dependency 2024-08-14 12:08:01 +02:00