quicktype-core 19.0.5 → 20.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/language/Rust.js +3 -1
- package/package.json +1 -1
package/dist/language/Rust.js
CHANGED
|
@@ -33,7 +33,7 @@ exports.rustOptions = {
|
|
|
33
33
|
["public", Visibility.Public]
|
|
34
34
|
]),
|
|
35
35
|
deriveDebug: new RendererOptions_1.BooleanOption("derive-debug", "Derive Debug impl", false),
|
|
36
|
-
edition2018: new RendererOptions_1.BooleanOption("edition-2018", "Edition 2018",
|
|
36
|
+
edition2018: new RendererOptions_1.BooleanOption("edition-2018", "Edition 2018", true),
|
|
37
37
|
leadingComments: new RendererOptions_1.BooleanOption("leading-comments", "Leading Comments", true)
|
|
38
38
|
};
|
|
39
39
|
class RustTargetLanguage extends TargetLanguage_1.TargetLanguage {
|
|
@@ -55,6 +55,8 @@ class RustTargetLanguage extends TargetLanguage_1.TargetLanguage {
|
|
|
55
55
|
}
|
|
56
56
|
exports.RustTargetLanguage = RustTargetLanguage;
|
|
57
57
|
const keywords = [
|
|
58
|
+
"Serialize",
|
|
59
|
+
"Deserialize",
|
|
58
60
|
// Special reserved identifiers used internally for elided lifetimes,
|
|
59
61
|
// unnamed method parameters, crate root module, error recovery etc.
|
|
60
62
|
"{{root}}",
|