kellnr-common 7.1.0

Kellnr is a self-hosted registry for Rust crates with support for rustdocs and crates.io caching.
Documentation
1
2
3
4
5
6
7
use utoipa::ToSchema;

// Describes binary request bodies, like uploaded archives, in the OpenAPI
// document. A `Vec<u8>` would be described as an array of integers.
#[derive(ToSchema)]
#[schema(value_type = String, format = Binary)]
pub struct BinaryBody(pub Vec<u8>);