Expand description
§Spaniel Interactive Deserialiser
This crate is a Rust library which uses the Serde serialisation framework to capture data interactively from users.
Modules§
- de
- Serde deserialiser.
- prompt
- Traits and decorators for working with prompts.
- rustyline
- Prompt based on the RustyLine crate.
- ser
- Serde serialiser.
- stdio
- Prompt based on
std::io
.
Enums§
- Error
- This type represents errors that may occur.
- User
Action - This type represents actions a user may take while interacting with the deserialiser.
Functions§
- from_
bare_ prompt - Deserialise a value of type
T
from a prompt using the bare deserialiser. - from_
bare_ prompt_ confirm - Deserialise a value of type
T
from a prompt using the bare deserialiser followed by confirmation. - from_
console - Deserialise an instance of type
T
from the console. - from_
prompt - Deserialise a value of type
T
from a prompt while handling undos, restarts, meta-commands, and scope compacting. - from_
replay_ prompt - Deserialise a value of type
T
from a prompt while handling undos and restarts. - to_
bare_ prompt - Serialise an instance of type
T
to a prompt using the bare serialiser. - to_
prompt - Serialise an instance of type
T
to a prompt while handling meta-commands and scope compacting.