#[non_exhaustive]pub struct DelimiterDetection {
pub delimiter: String,
pub header_fields: usize,
pub runner_up: Option<String>,
pub unlisted_delimiter: Option<String>,
}Expand description
What delimiter detection saw when it chose a delimiter.
Detection scores comma, semicolon, tab and pipe over the first records of
the source. Some sources read equally well with two of them, and some with
none: the record says so, and findings() warns about both.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.delimiter: StringThe delimiter detection chose, as one character.
header_fields: usizeFields the chosen delimiter splits the header into: 1 when no candidate splits it, 0 when the sampled source holds no header record.
runner_up: Option<String>Another candidate that splits the header and keeps as many sampled
records at the header’s width as the chosen one, so that structure
alone does not tell them apart. None when the choice was clear.
unlisted_delimiter: Option<String>When no candidate splits the header, a punctuation character outside
the candidates that occurs as often in the header as in every sampled
record, so it likely delimits the source. None when a candidate
splits the header, and for an ordinary one-column source.
Implementations§
Trait Implementations§
Source§impl Clone for DelimiterDetection
impl Clone for DelimiterDetection
Source§impl Debug for DelimiterDetection
impl Debug for DelimiterDetection
Source§impl<'de> Deserialize<'de> for DelimiterDetection
impl<'de> Deserialize<'de> for DelimiterDetection
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>,
impl Eq for DelimiterDetection
Source§impl JsonSchema for DelimiterDetection
impl JsonSchema for DelimiterDetection
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
$ref keyword. Read moreSource§impl PartialEq for DelimiterDetection
impl PartialEq for DelimiterDetection
Source§impl Serialize for DelimiterDetection
impl Serialize for DelimiterDetection
impl StructuralPartialEq for DelimiterDetection
Auto Trait Implementations§
impl Forget for DelimiterDetection
impl Freeze for DelimiterDetection
impl Move for DelimiterDetection
impl RefUnwindSafe for DelimiterDetection
impl Send for DelimiterDetection
impl Sync for DelimiterDetection
impl Unpin for DelimiterDetection
impl UnsafeUnpin for DelimiterDetection
impl UnwindSafe for DelimiterDetection
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.