pub enum InputFilter {
None,
Loose,
Strict,
}Expand description
InputFilter : Input filtering helps when you have addresses from sources you can’t control. Sometimes, providers might miss out on important parts of addresses, like a street number or postcode. If Naurt detects that an address is missing too many fields to be likely to give a good match, it can be rejected by this feature none turns this feature off and does not do any input filtering. This may result in some poor responses loose is the default - it does filter out some poor inputs but allows some missing fields strict is our strictest, and only allows searches which are likely to produce good matches
Input filtering helps when you have addresses from sources you can’t control. Sometimes, providers might miss out on important parts of addresses, like a street number or postcode. If Naurt detects that an address is missing too many fields to be likely to give a good match, it can be rejected by this feature none turns this feature off and does not do any input filtering. This may result in some poor responses loose is the default - it does filter out some poor inputs but allows some missing fields strict is our strictest, and only allows searches which are likely to produce good matches
Variants§
Trait Implementations§
Source§impl Clone for InputFilter
impl Clone for InputFilter
Source§fn clone(&self) -> InputFilter
fn clone(&self) -> InputFilter
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for InputFilter
impl Debug for InputFilter
Source§impl Default for InputFilter
impl Default for InputFilter
Source§fn default() -> InputFilter
fn default() -> InputFilter
Source§impl<'de> Deserialize<'de> for InputFilter
impl<'de> Deserialize<'de> for InputFilter
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Source§impl Display for InputFilter
impl Display for InputFilter
Source§impl Hash for InputFilter
impl Hash for InputFilter
Source§impl Ord for InputFilter
impl Ord for InputFilter
Source§fn cmp(&self, other: &InputFilter) -> Ordering
fn cmp(&self, other: &InputFilter) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Source§impl PartialEq for InputFilter
impl PartialEq for InputFilter
Source§impl PartialOrd for InputFilter
impl PartialOrd for InputFilter
Source§impl Serialize for InputFilter
impl Serialize for InputFilter
impl Copy for InputFilter
impl Eq for InputFilter
impl StructuralPartialEq for InputFilter
Auto Trait Implementations§
impl Freeze for InputFilter
impl RefUnwindSafe for InputFilter
impl Send for InputFilter
impl Sync for InputFilter
impl Unpin for InputFilter
impl UnsafeUnpin for InputFilter
impl UnwindSafe for InputFilter
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<T> ToStringFallible for Twhere
T: Display,
impl<T> ToStringFallible for Twhere
T: Display,
Source§fn try_to_string(&self) -> Result<String, TryReserveError>
fn try_to_string(&self) -> Result<String, TryReserveError>
ToString::to_string, but without panic on OOM.