pub enum FieldFormat {
Number {
decimals: usize,
separator: SeparatorStyle,
negative_style: NegativeStyle,
currency: Option<String>,
},
Percent {
decimals: usize,
},
Date {
format: String,
},
Time {
format: String,
},
Special {
format_type: SpecialFormat,
},
Custom {
format_string: String,
},
}Expand description
Field format specification
Variants§
Number
Number format
Percent
Percentage format
Date
Date format
Time
Time format
Special
Special format (SSN, Phone, Zip)
Fields
§
format_type: SpecialFormatCustom
Custom format
Trait Implementations§
Source§impl Clone for FieldFormat
impl Clone for FieldFormat
Source§fn clone(&self) -> FieldFormat
fn clone(&self) -> FieldFormat
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for FieldFormat
impl RefUnwindSafe for FieldFormat
impl Send for FieldFormat
impl Sync for FieldFormat
impl Unpin for FieldFormat
impl UnsafeUnpin for FieldFormat
impl UnwindSafe for FieldFormat
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