proxmox/pbs-api-types/src
Christian Ebner 00a1980903 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
..
tape api-types: add missing doc-comment description for api enums 2024-10-22 15:25:52 +02:00
acl.rs api types: define remote permissions and roles for push sync 2024-11-21 10:14:53 +01:00
ad.rs api: access: add routes for managing AD realms 2024-04-24 21:06:14 +02:00
crypto.rs api types: rust fmt 2022-04-10 18:00:18 +02:00
datastore.rs datastore: extract nesting check into helper 2024-11-27 15:25:37 +01:00
file_restore.rs pbs-api-types: add FileRestoreFormat type 2022-10-05 18:40:49 +02:00
jobs.rs sync jobs: remove superfluous direction property 2024-11-26 16:02:22 +01:00
key_derivation.rs api types: rust fmt 2022-04-10 18:00:18 +02:00
ldap.rs fix typos in strings 2024-08-07 16:49:31 +02:00
lib.rs api: enforce minimum character limit of 8 on new passwords 2024-11-25 15:51:47 +01:00
maintenance.rs maintenance: add 'Unmount' maintenance type 2024-11-25 21:34:22 +01:00
metrics.rs pbs-api-types: add types for the new metrics endpoint 2024-10-15 14:09:41 +02:00
network.rs config: write vlan network interface 2024-04-24 21:48:50 +02:00
node.rs node: status: declutter kernel-version 2023-11-29 15:31:35 +01:00
openid.rs fix #5190: api: OIDC: accept generic URIs for the ACR value 2024-02-08 18:14:30 +01:00
pathpatterns.rs api types: replace PathPatterns with Vec<PathPattern> 2024-11-25 12:28:40 +01:00
percent_encoding.rs move pbs-tools/src/percent_encoding.rs to pbs-api-types/src/percent_encoding.rs 2021-11-25 11:48:52 +01:00
remote.rs api-types: add a missing serde(default) 2023-12-06 15:53:57 +01:00
traffic_control.rs fix #5622: backup client: properly handle rate/burst parameters 2024-08-30 13:21:29 +02:00
user.rs api-types: set serde defaults for UserWithTokens 2023-08-01 09:12:43 +02:00
version.rs api types: version: implement traits to allow for version comparison 2024-12-02 15:27:37 +01:00
zfs.rs api-types: clippy fixes 2022-07-27 13:29:32 +02:00