pub enum FieldKind {
Alpha,
Numeric,
Decimal {
scale: u8,
},
}Expand description
Define o tipo de dado esperado no campo para conversão.
Variants§
Alpha
Texto alfanumérico. Geralmente alinhado à esquerda e preenchido com espaços à direita.
Numeric
Numérico inteiro. Geralmente alinhado à direita e preenchido com zeros à esquerda. Se o campo estiver vazio ou só espaços, será convertido para 0.
Decimal
Numérico com casas decimais implícitas.
Exemplo: A string “000000001234” com scale: 2 representa 12.34.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for FieldKind
impl RefUnwindSafe for FieldKind
impl Send for FieldKind
impl Sync for FieldKind
impl Unpin for FieldKind
impl UnwindSafe for FieldKind
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