5
0
mirror of git://git.proxmox.com/git/proxmox-backup.git synced 2025-01-03 01:18:02 +03:00

api types: version: drop unused repoid field

The `ApiVersion` type was introduced in commit a926803b
("api/api-types: refactor api endpoint version, add api types")
including the `repoid`, added for completeness when converting from
a pre-existing `ApiVersionInfo` instance, as returned by the
`version` api endpoint.

Drop the additional `repoid` field, since this is currently not used,
can be obtained fro the `ApiVersionInfo` as well and only hinders the
implementation for easy api version comparison.

Signed-off-by: Christian Ebner <c.ebner@proxmox.com>
This commit is contained in:
Christian Ebner 2024-11-28 17:07:19 +01:00 committed by Thomas Lamprecht
parent 77fd1853b3
commit d11393c70e

View File

@ -37,7 +37,6 @@ pub struct ApiVersion {
pub major: ApiVersionMajor,
pub minor: ApiVersionMinor,
pub release: ApiVersionRelease,
pub repoid: String,
}
impl TryFrom<ApiVersionInfo> for ApiVersion {
@ -64,7 +63,6 @@ impl TryFrom<ApiVersionInfo> for ApiVersion {
major,
minor,
release,
repoid: value.repoid.clone(),
})
}
}