#[non_exhaustive]pub struct CsvMappingParameters {
pub record_row_delimiter: String,
pub record_column_delimiter: String,
}
Expand description
For a SQL-based Kinesis Data Analytics application, provides additional mapping information when the record format uses delimiters, such as CSV. For example, the following sample records use CSV format, where the records use the '\n' as the row delimiter and a comma (",") as the column delimiter:
"name1", "address1"
"name2", "address2"
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.record_row_delimiter: String
The row delimiter. For example, in a CSV format, '\n' is the typical row delimiter.
record_column_delimiter: String
The column delimiter. For example, in a CSV format, a comma (",") is the typical column delimiter.
Implementations§
source§impl CsvMappingParameters
impl CsvMappingParameters
sourcepub fn record_row_delimiter(&self) -> &str
pub fn record_row_delimiter(&self) -> &str
The row delimiter. For example, in a CSV format, '\n' is the typical row delimiter.
sourcepub fn record_column_delimiter(&self) -> &str
pub fn record_column_delimiter(&self) -> &str
The column delimiter. For example, in a CSV format, a comma (",") is the typical column delimiter.
source§impl CsvMappingParameters
impl CsvMappingParameters
sourcepub fn builder() -> CsvMappingParametersBuilder
pub fn builder() -> CsvMappingParametersBuilder
Creates a new builder-style object to manufacture CsvMappingParameters
.
Trait Implementations§
source§impl Clone for CsvMappingParameters
impl Clone for CsvMappingParameters
source§fn clone(&self) -> CsvMappingParameters
fn clone(&self) -> CsvMappingParameters
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for CsvMappingParameters
impl Debug for CsvMappingParameters
source§impl PartialEq for CsvMappingParameters
impl PartialEq for CsvMappingParameters
source§fn eq(&self, other: &CsvMappingParameters) -> bool
fn eq(&self, other: &CsvMappingParameters) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for CsvMappingParameters
Auto Trait Implementations§
impl Freeze for CsvMappingParameters
impl RefUnwindSafe for CsvMappingParameters
impl Send for CsvMappingParameters
impl Sync for CsvMappingParameters
impl Unpin for CsvMappingParameters
impl UnwindSafe for CsvMappingParameters
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> 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> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more