forked from proxmox-mirrors/proxmox
update to proxmox-schema 4
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
This commit is contained in:
parent
2f3e985b5f
commit
5a7993beb0
@ -68,16 +68,14 @@ impl RateLimitConfig {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
const CLIENT_RATE_LIMIT_SCHEMA: Schema = StringSchema {
|
const CLIENT_RATE_LIMIT_SCHEMA: Schema = HumanByte::API_SCHEMA
|
||||||
description: "Rate limit (for Token bucket filter) in bytes/s with optional unit (B, KB (base 10), MB, GB, ..., KiB (base 2), MiB, Gib, ...).",
|
.unwrap_string_schema_cloned()
|
||||||
..*HumanByte::API_SCHEMA.unwrap_string_schema()
|
.description("Rate limit (for Token bucket filter) in bytes/s with optional unit (B, KB (base 10), MB, GB, ..., KiB (base 2), MiB, Gib, ...).")
|
||||||
}
|
|
||||||
.schema();
|
.schema();
|
||||||
|
|
||||||
const CLIENT_BURST_SCHEMA: Schema = StringSchema {
|
const CLIENT_BURST_SCHEMA: Schema = HumanByte::API_SCHEMA
|
||||||
description: "Size of the token bucket (for Token bucket filter) in bytes with optional unit (B, KB (base 10), MB, GB, ..., KiB (base 2), MiB, Gib, ...).",
|
.unwrap_string_schema_cloned()
|
||||||
..*HumanByte::API_SCHEMA.unwrap_string_schema()
|
.description("Size of the token bucket (for Token bucket filter) in bytes with optional unit (B, KB (base 10), MB, GB, ..., KiB (base 2), MiB, Gib, ...).")
|
||||||
}
|
|
||||||
.schema();
|
.schema();
|
||||||
|
|
||||||
#[api(
|
#[api(
|
||||||
|
Loading…
Reference in New Issue
Block a user