| 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/::{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#}; |
| 3 | 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#; |
| 4 | use uuid1rust-analyzer cargo uuid 1.20.0 crate/::Uuidrust-analyzer cargo uuid 1.20.0 Uuid#; |
| 5 | |
| 6 | impl JsonSchemarust-analyzer cargo schemars 1.2.2 JsonSchema# for Uuidrust-analyzer cargo uuid 1.20.0 Uuid# { |
| 7 | inline_schemarust-analyzer cargo schemars 1.2.2 json_schema_impls/inline_schema!!(); |
| 8 | |
| 9 | fn schema_namerust-analyzer cargo schemars 1.2.2 json_schema_impls/uuid1/impl#[Uuid][JsonSchema]schema_name().() -> Cowrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc borrow/Cow#<'static, str> { |
| 10 | "Uuid".intorust-analyzer cargo core https://github.com/rust-lang/rust/library/core convert/impl#[T][`Into<U>`]into().() |
| 11 | } |
| 12 | |
| 13 | fn schema_idrust-analyzer cargo schemars 1.2.2 json_schema_impls/uuid1/impl#[Uuid][JsonSchema]schema_id().() -> Cowrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc borrow/Cow#<'static, str> { |
| 14 | "uuid::Uuid".intorust-analyzer cargo core https://github.com/rust-lang/rust/library/core convert/impl#[T][`Into<U>`]into().() |
| 15 | } |
| 16 | |
| 17 | fn json_schemarust-analyzer cargo schemars 1.2.2 json_schema_impls/uuid1/impl#[Uuid][JsonSchema]json_schema().(_: &mut SchemaGeneratorrust-analyzer cargo schemars 1.2.2 generate/SchemaGenerator#) -> Schemarust-analyzer cargo schemars 1.2.2 schema/Schema# { |
| 18 | json_schemarust-analyzer cargo schemars 1.2.2 macros/json_schema!!({ |
| 19 | "type": "string", |
| 20 | "format": "uuid", |
| 21 | }) |
| 22 | } |
| 23 | } |