pub enum FieldType {
Show 27 variants
String,
Integer,
Float,
Boolean,
Letters,
Word,
NonLetters,
NonWhitespace,
NonDigits,
NumberWithThousands,
Scientific,
GeneralNumber,
Percentage,
DateTimeISO,
DateTimeRFC2822,
DateTimeGlobal,
DateTimeUS,
DateTimeCtime,
DateTimeHTTP,
DateTimeTime,
DateTimeSystem,
DateTimeStrftime,
BracedContent,
Multiline,
IndentBlock,
Nested,
Custom(String),
}Expand description
Type definitions for field specifications
Variants§
String
Integer
Float
Boolean
Letters
Word
NonLetters
NonWhitespace
NonDigits
NumberWithThousands
Scientific
GeneralNumber
Percentage
DateTimeISO
DateTimeRFC2822
DateTimeGlobal
DateTimeUS
DateTimeCtime
DateTimeHTTP
DateTimeTime
DateTimeSystem
DateTimeStrftime
BracedContent
Match {...} in the input; capture inner text (non-greedy to first }). Issue #15 / parse#146.
Multiline
Multiline text between anchors; format specifier :ml (issues #8, #70). Supports
width, precision, alignment, and fill like strings; sign / zero-padding / = align not supported.
IndentBlock
Indented block: same match boundaries as :ml, then strip common leading spaces/tabs
per line (issue #69). Format specifier :blk.
Nested
Entire format spec is a nested brace pattern (e.g. {outer:{inner:d}}); see formatparse#12.
Custom(String)
Trait Implementations§
Auto Trait Implementations§
impl Freeze for FieldType
impl RefUnwindSafe for FieldType
impl Send for FieldType
impl Sync for FieldType
impl Unpin for FieldType
impl UnsafeUnpin for FieldType
impl UnwindSafe for FieldType
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more