| 1 | use craterust-analyzer cargo schemars 1.2.2 crate/::SchemaGeneratorrust-analyzer cargo schemars 1.2.2 generate/SchemaGenerator#; |
| 2 | use craterust-analyzer cargo schemars 1.2.2 crate/::_alloc_preluderust-analyzer cargo schemars 1.2.2 _alloc_prelude/::*; |
| 3 | use craterust-analyzer cargo schemars 1.2.2 crate/::{json_schemarust-analyzer cargo schemars 1.2.2 macros/json_schema!, JsonSchemarust-analyzer cargo schemars 1.2.2 JsonSchema#, Schemarust-analyzer cargo schemars 1.2.2 schema/Schema#}; |
| 4 | use allocrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc crate/::borrowrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc borrow/::Cowrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc borrow/Cow#; |
| 5 | use allocrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc crate/::collectionsrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc collections/::BTreeMaprust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc collections/btree/map/BTreeMap#; |
| 6 | use serde_jsonrust-analyzer cargo serde_json 1.0.151 crate/::{Maprust-analyzer cargo serde_json 1.0.151 map/Map#, Numberrust-analyzer cargo serde_json 1.0.151 number/Number#, Valuerust-analyzer cargo serde_json 1.0.151 value/Value#}; |
| 7 | |
| 8 | impl JsonSchemarust-analyzer cargo schemars 1.2.2 JsonSchema# for Valuerust-analyzer cargo serde_json 1.0.151 value/Value# { |
| 9 | inline_schemarust-analyzer cargo schemars 1.2.2 json_schema_impls/inline_schema!!(); |
| 10 | |
| 11 | fn schema_namerust-analyzer cargo schemars 1.2.2 json_schema_impls/serdejson/impl#[Value][JsonSchema]schema_name().() -> Cowrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc borrow/Cow#<'static, str> { |
| 12 | "AnyValue".intorust-analyzer cargo core https://github.com/rust-lang/rust/library/core convert/impl#[T][`Into<U>`]into().() |
| 13 | } |
| 14 | |
| 15 | fn json_schemarust-analyzer cargo schemars 1.2.2 json_schema_impls/serdejson/impl#[Value][JsonSchema]json_schema().(_: &mut SchemaGeneratorrust-analyzer cargo schemars 1.2.2 generate/SchemaGenerator#) -> Schemarust-analyzer cargo schemars 1.2.2 schema/Schema# { |
| 16 | true.intorust-analyzer cargo core https://github.com/rust-lang/rust/library/core convert/impl#[T][`Into<U>`]into().() |
| 17 | } |
| 18 | } |
| 19 | |
| 20 | forward_implrust-analyzer cargo schemars 1.2.2 json_schema_impls/forward_impl!!(Maprust-analyzer cargo serde_json 1.0.151 map/Map#<Stringrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc string/String#, Valuerust-analyzer cargo serde_json 1.0.151 value/Value#> => BTreeMaprust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc collections/btree/map/BTreeMap#<Stringrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc string/String#, Valuerust-analyzer cargo serde_json 1.0.151 value/Value#>); |
| 21 | |
| 22 | impl JsonSchemarust-analyzer cargo schemars 1.2.2 JsonSchema# for Numberrust-analyzer cargo serde_json 1.0.151 number/Number# { |
| 23 | inline_schemarust-analyzer cargo schemars 1.2.2 json_schema_impls/inline_schema!!(); |
| 24 | |
| 25 | fn schema_namerust-analyzer cargo schemars 1.2.2 json_schema_impls/serdejson/impl#[Number][JsonSchema]schema_name().() -> Cowrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc borrow/Cow#<'static, str> { |
| 26 | "Number".intorust-analyzer cargo core https://github.com/rust-lang/rust/library/core convert/impl#[T][`Into<U>`]into().() |
| 27 | } |
| 28 | |
| 29 | fn json_schemarust-analyzer cargo schemars 1.2.2 json_schema_impls/serdejson/impl#[Number][JsonSchema]json_schema().(_: &mut SchemaGeneratorrust-analyzer cargo schemars 1.2.2 generate/SchemaGenerator#) -> Schemarust-analyzer cargo schemars 1.2.2 schema/Schema# { |
| 30 | json_schemarust-analyzer cargo schemars 1.2.2 macros/json_schema!!({ |
| 31 | "type": "number" |
| 32 | }) |
| 33 | } |
| 34 | } |
| 35 | |
| 36 | #[cfg(feature = "raw_value")] |
| 37 | forward_implrust-analyzer cargo schemars 1.2.2 json_schema_impls/forward_impl!!(serde_jsonrust-analyzer cargo serde_json 1.0.151 crate/::valuerust-analyzer cargo serde_json 1.0.151 value/::RawValuerust-analyzer cargo serde_json 1.0.151 raw/RawValue# => Valuerust-analyzer cargo serde_json 1.0.151 value/Value#); |