Crate rfc2047_decoder

Source
Expand description

§Introduction

This crate provides a Decoder and the function decode, in order to decode encoded words as described in the RFC 2047.

§Where to start looking

You will likely want to start looking into Decoder and/or the decode to use this crate.

Structs§

Decoder
Represents the decoder builder.
TooLongEncodedWords
A helper struct which implements std::fmt::Display for Vec<String> and which contains the encoded words which are too long as a String.

Enums§

Error
The possible errors which can occur while parsing the string.
EvaluatorError
All errors which the evaluator can throw.
LexerError
All errors which the lexer can throw.
ParserError
All errors which the parser can throw.
RecoverStrategy
Determines which strategy should be used if an encoded word isn’t encoded as described in the RFC.

Functions§

decode
Decodes the given RFC 2047 MIME Message Header encoded string using a default decoder.