Implement JsonSchema for fmt::Arguments
This commit is contained in:
parent
be59422c13
commit
ebb7173dfc
1 changed files with 12 additions and 0 deletions
|
@ -71,3 +71,15 @@ impl JsonSchema for char {
|
||||||
.into()
|
.into()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
impl<'a> JsonSchema for std::fmt::Arguments<'a> {
|
||||||
|
no_ref_schema!();
|
||||||
|
|
||||||
|
fn schema_name() -> String {
|
||||||
|
<String>::schema_name()
|
||||||
|
}
|
||||||
|
|
||||||
|
fn json_schema(gen: &mut SchemaGenerator) -> Schema {
|
||||||
|
<String>::json_schema(gen)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue