Comments (2)
Sorry, wrong repo
from serde-bencode.
No worries. If it helps, I don't think Enums are very well supported in any of the bencode libs. The Serde team says they're working on a new way to handle them that should make working with them easier.
If you want your example to work with this library you can change QueryType
to String
and it should work.
from serde-bencode.
Related Issues (20)
- Upgrade to serde 1.0 HOT 4
- How to unwrap pieces? HOT 3
- Bytebuf with serde-bencode 0.2.0? HOT 2
- Bencode enum link in the readme is broken HOT 2
- Write better documentation HOT 4
- Encoding Vec<u8> as bytes HOT 3
- Fix Rust 1.26 attribute regression HOT 3
- not support complex struct?
- Error round-tripping complex struct HOT 1
- RawValue as a type for deserializing HOT 1
- Failure to deserialize into adjacently tagged enum
- OOM when parsing byte string with extremely long (incorrect) length
- ERROR: Invalid Type: sequence (expected: `bytes`) HOT 1
- Change from pub to pub(crate)
- Tuple structs cannot be deserialized
- Improve testing coverage
- Deserialization for enums with `#[serde(flatten)]` is not working HOT 1
- Release: `v0.2.4` HOT 1
- Print what field gives a serializa/deserialize error HOT 1
- Allow serialization of unit variant as string
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from serde-bencode.