Rust
- Language Features
- Generator Features
- Implement
new
- Implement
default
- Implement
From<String> (serde_json)
- Implement
Into<String> (serde_json)
- Implement
From<FramedByteStream> (tokio_serde)
- Implement
Into<FramedByteStream> (tokio_serde)
Language Features
Generated code depends on the following Cargo features:
- derive
- alloc
Generator Features
Feature | Status | Info |
---|---|---|
Union (polymorphic type) | ✅ done | |
Enum (group of constants) | ✅ done | |
Array (unordered collection) | ✅ done | |
Tuple (ordered collection) | ✅ done |
Implement new
To generate a new
method, use the preset RUST_COMMON_PRESET
and provide the option implementNew: true
.
Implement Default
for enums
To generate Default
implementation for enums that provide a default value, use the preset RUST_COMMON_PRESET
and provide the option implementDefault: true
.
Implement From<String>
(serde_json)
TODO
Implement Into<String>
(serde_json)
TODO
Implement From<FramedByteStream>
(tokio_serde)
TODO
Implement From<FramedByteStream>
(tokio_serde)
TOOD