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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
//! A list of all the preprocessors that preprocess the given field, mutating it
//! if required. The type of the field may be changed. For example, the
//! [`lowercase`](crate::preprocessors::preprocess_lowercase) preprocessor will
//! change the type of the field to [`String`].
//!
//! # Lowercase
//!
//! The `lowercase` preprocessor converts all the characters in the given value
//! to lowercase using the [`to_lowercase`](`str::to_lowercase`) method.
//!
//! ## Usage
//!
//! ```rust
//! #[preprocess::sync]
//! pub struct MyStruct {
//! #[preprocess(lowercase)]
//! pub my_string: String,
//! }
//! ```
//!
//! # Uppercase
//!
//! The `uppercase` preprocessor converts all the characters in the given value
//! to uppercase using the [`to_uppercase`](`str::to_uppercase`) method.
//!
//! ## Usage
//!
//! ```rust
//! #[preprocess::sync]
//! pub struct MyStruct {
//! #[preprocess(uppercase)]
//! pub my_string: String,
//! }
//! ```
//!
//! # Trim
//!
//! The `trim` preprocessor trims the given value using the
//! [`trim`](`str::trim`) method.
//!
//! ## Usage
//!
//! ```rust
//! #[preprocess::sync]
//! pub struct MyStruct {
//! #[preprocess(trim)]
//! pub my_string: String,
//! }
//! ```
/// A lowercase preprocessor that converts all the characters in the given value
/// to lowercase using the [`to_lowercase`](`str::to_lowercase`) method.
/// A trim preprocessor that trims the given value using the
/// [`trim`](`str::trim`) method.
/// An uppercase preprocessor that converts all the characters in the given
/// value to uppercase using the [`to_uppercase`](`str::to_uppercase`) method.
pub use ;