bytekind 0.2.0

Containers for byte arrays that are generic over their serialization format
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
use schemars::JsonSchema;

use crate::{Format, Bytes};

impl<F: Format> JsonSchema for Bytes<F> {
    fn json_schema(gen: &mut schemars::gen::SchemaGenerator) -> schemars::schema::Schema {
        Vec::<u8>::json_schema(gen)
    }

    fn schema_name() -> String {
        Vec::<u8>::schema_name()
    }
}