Struct aws_sdk_glue::types::CreateCsvClassifierRequest
source · #[non_exhaustive]pub struct CreateCsvClassifierRequest {
pub name: String,
pub delimiter: Option<String>,
pub quote_symbol: Option<String>,
pub contains_header: Option<CsvHeaderOption>,
pub header: Option<Vec<String>>,
pub disable_value_trimming: Option<bool>,
pub allow_single_column: Option<bool>,
pub custom_datatype_configured: Option<bool>,
pub custom_datatypes: Option<Vec<String>>,
pub serde: Option<CsvSerdeOption>,
}
Expand description
Specifies a custom CSV classifier for CreateClassifier
to create.
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.name: String
The name of the classifier.
delimiter: Option<String>
A custom symbol to denote what separates each column entry in the row.
quote_symbol: Option<String>
A custom symbol to denote what combines content into a single column value. Must be different from the column delimiter.
contains_header: Option<CsvHeaderOption>
Indicates whether the CSV file contains a header.
header: Option<Vec<String>>
A list of strings representing column names.
disable_value_trimming: Option<bool>
Specifies not to trim values before identifying the type of column values. The default value is true.
allow_single_column: Option<bool>
Enables the processing of files that contain only one column.
custom_datatype_configured: Option<bool>
Enables the configuration of custom datatypes.
custom_datatypes: Option<Vec<String>>
Creates a list of supported custom datatypes.
serde: Option<CsvSerdeOption>
Sets the SerDe for processing CSV in the classifier, which will be applied in the Data Catalog. Valid values are OpenCSVSerDe
, LazySimpleSerDe
, and None
. You can specify the None
value when you want the crawler to do the detection.
Implementations§
source§impl CreateCsvClassifierRequest
impl CreateCsvClassifierRequest
sourcepub fn delimiter(&self) -> Option<&str>
pub fn delimiter(&self) -> Option<&str>
A custom symbol to denote what separates each column entry in the row.
sourcepub fn quote_symbol(&self) -> Option<&str>
pub fn quote_symbol(&self) -> Option<&str>
A custom symbol to denote what combines content into a single column value. Must be different from the column delimiter.
sourcepub fn contains_header(&self) -> Option<&CsvHeaderOption>
pub fn contains_header(&self) -> Option<&CsvHeaderOption>
Indicates whether the CSV file contains a header.
sourcepub fn header(&self) -> &[String]
pub fn header(&self) -> &[String]
A list of strings representing column names.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .header.is_none()
.
sourcepub fn disable_value_trimming(&self) -> Option<bool>
pub fn disable_value_trimming(&self) -> Option<bool>
Specifies not to trim values before identifying the type of column values. The default value is true.
sourcepub fn allow_single_column(&self) -> Option<bool>
pub fn allow_single_column(&self) -> Option<bool>
Enables the processing of files that contain only one column.
sourcepub fn custom_datatype_configured(&self) -> Option<bool>
pub fn custom_datatype_configured(&self) -> Option<bool>
Enables the configuration of custom datatypes.
sourcepub fn custom_datatypes(&self) -> &[String]
pub fn custom_datatypes(&self) -> &[String]
Creates a list of supported custom datatypes.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .custom_datatypes.is_none()
.
sourcepub fn serde(&self) -> Option<&CsvSerdeOption>
pub fn serde(&self) -> Option<&CsvSerdeOption>
Sets the SerDe for processing CSV in the classifier, which will be applied in the Data Catalog. Valid values are OpenCSVSerDe
, LazySimpleSerDe
, and None
. You can specify the None
value when you want the crawler to do the detection.
source§impl CreateCsvClassifierRequest
impl CreateCsvClassifierRequest
sourcepub fn builder() -> CreateCsvClassifierRequestBuilder
pub fn builder() -> CreateCsvClassifierRequestBuilder
Creates a new builder-style object to manufacture CreateCsvClassifierRequest
.
Trait Implementations§
source§impl Clone for CreateCsvClassifierRequest
impl Clone for CreateCsvClassifierRequest
source§fn clone(&self) -> CreateCsvClassifierRequest
fn clone(&self) -> CreateCsvClassifierRequest
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for CreateCsvClassifierRequest
impl Debug for CreateCsvClassifierRequest
source§impl PartialEq for CreateCsvClassifierRequest
impl PartialEq for CreateCsvClassifierRequest
source§fn eq(&self, other: &CreateCsvClassifierRequest) -> bool
fn eq(&self, other: &CreateCsvClassifierRequest) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for CreateCsvClassifierRequest
Auto Trait Implementations§
impl Freeze for CreateCsvClassifierRequest
impl RefUnwindSafe for CreateCsvClassifierRequest
impl Send for CreateCsvClassifierRequest
impl Sync for CreateCsvClassifierRequest
impl Unpin for CreateCsvClassifierRequest
impl UnwindSafe for CreateCsvClassifierRequest
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