1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
//! # enum-str-derive
//!
//! [](https://github.com/enzious/enum-str-derive/blob/master/LICENSE.md)
//! [](https://github.com/enzious/enum-str-derive/graphs/contributors)
//! [](https://github.com/enzious/enum-str-derive)
//! [](https://crates.io/crates/enum-str-derive)
//!
//! A crate to serialize/deserialize enums into/from a string.
//!
//! Converts enums to a string when using [serde] and [postgres].
//!
//! ## Documentation
//!
//! - [API Documentation](https://docs.rs/enum-str-derive)
//!
//! ## Implementation
//!
//! ```rust
//! use enum_str_derive::EnumStr;
//!
//! #[derive(Clone, Copy, Debug, EnumStr)]
//! pub enum ChannelTypeShortcode {
//! Text, // TEXT
//! #[enum_str(string = "w")]
//! Theater, // w
//! }
//! ```
//!
//! [serde]: https://crates.io/crates/serde
//! [postgres]: https://crates.io/crates/postgres
use TokenStream;