pub enum BlankStringPolicy {
Preserve,
TreatAsMissing,
Reject,
}Expand description
Controls how blank string sources are interpreted during conversion.
Variants§
Preserve
Keep blank strings as real string values.
TreatAsMissing
Treat blank strings as missing values.
Reject
Reject blank strings as invalid input.
Trait Implementations§
Source§impl Clone for BlankStringPolicy
impl Clone for BlankStringPolicy
Source§fn clone(&self) -> BlankStringPolicy
fn clone(&self) -> BlankStringPolicy
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 moreSource§impl Debug for BlankStringPolicy
impl Debug for BlankStringPolicy
Source§impl PartialEq for BlankStringPolicy
impl PartialEq for BlankStringPolicy
Source§fn eq(&self, other: &BlankStringPolicy) -> bool
fn eq(&self, other: &BlankStringPolicy) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for BlankStringPolicy
impl Eq for BlankStringPolicy
impl StructuralPartialEq for BlankStringPolicy
Auto Trait Implementations§
impl Freeze for BlankStringPolicy
impl RefUnwindSafe for BlankStringPolicy
impl Send for BlankStringPolicy
impl Sync for BlankStringPolicy
impl Unpin for BlankStringPolicy
impl UnsafeUnpin for BlankStringPolicy
impl UnwindSafe for BlankStringPolicy
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