#[non_exhaustive]pub struct CsvSourceMetadata {
pub delimiter: String,
pub delimiter_detection: Option<DelimiterDetection>,
}Expand description
How a CSV source was split into fields.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.delimiter: StringThe delimiter the reader split records on, as one character.
delimiter_detection: Option<DelimiterDetection>How detection chose the delimiter. None when the delimiter was set
explicitly, so detection did not run.
Implementations§
Source§impl CsvSourceMetadata
impl CsvSourceMetadata
Sourcepub fn configured(delimiter: u8) -> Self
pub fn configured(delimiter: u8) -> Self
A delimiter the caller set explicitly.
Sourcepub fn configured_char(delimiter: char) -> Self
pub fn configured_char(delimiter: char) -> Self
A delimiter character the caller set, for a reader that splits on
characters rather than bytes: Python’s csv module, which reads
synchronous CSV bytes, takes any one character, § included.
Sourcepub fn detected(detection: DelimiterDetection) -> Self
pub fn detected(detection: DelimiterDetection) -> Self
A delimiter detection chose.
Trait Implementations§
Source§impl Clone for CsvSourceMetadata
impl Clone for CsvSourceMetadata
Source§impl Debug for CsvSourceMetadata
impl Debug for CsvSourceMetadata
Source§impl<'de> Deserialize<'de> for CsvSourceMetadata
impl<'de> Deserialize<'de> for CsvSourceMetadata
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>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for CsvSourceMetadata
Source§impl JsonSchema for CsvSourceMetadata
impl JsonSchema for CsvSourceMetadata
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreSource§impl PartialEq for CsvSourceMetadata
impl PartialEq for CsvSourceMetadata
Source§impl Serialize for CsvSourceMetadata
impl Serialize for CsvSourceMetadata
impl StructuralPartialEq for CsvSourceMetadata
Auto Trait Implementations§
impl Forget for CsvSourceMetadata
impl Freeze for CsvSourceMetadata
impl Move for CsvSourceMetadata
impl RefUnwindSafe for CsvSourceMetadata
impl Send for CsvSourceMetadata
impl Sync for CsvSourceMetadata
impl Unpin for CsvSourceMetadata
impl UnsafeUnpin for CsvSourceMetadata
impl UnwindSafe for CsvSourceMetadata
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
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
Compare self to
key and return true if they are equal.