pub struct TextStructureFindStructure<'a, 'b, B> { /* private fields */ }
Expand description
Builder for the Text Structure Find Structure API
Finds the structure of a text file. The text file must contain data that is suitable to be ingested into Elasticsearch.
Implementations
sourceimpl<'a, 'b, B> TextStructureFindStructure<'a, 'b, B> where
B: Body,
impl<'a, 'b, B> TextStructureFindStructure<'a, 'b, B> where
B: Body,
sourcepub fn new(transport: &'a Transport) -> Self
pub fn new(transport: &'a Transport) -> Self
Creates a new instance of TextStructureFindStructure
sourcepub fn body<T>(
self,
body: Vec<T>
) -> TextStructureFindStructure<'a, 'b, NdBody<T>> where
T: Body,
pub fn body<T>(
self,
body: Vec<T>
) -> TextStructureFindStructure<'a, 'b, NdBody<T>> where
T: Body,
The body for the API call
sourcepub fn charset(self, charset: &'b str) -> Self
pub fn charset(self, charset: &'b str) -> Self
Optional parameter to specify the character set of the file
sourcepub fn column_names(self, column_names: &'b [&'b str]) -> Self
pub fn column_names(self, column_names: &'b [&'b str]) -> Self
Optional parameter containing a comma separated list of the column names for a delimited file
sourcepub fn delimiter(self, delimiter: &'b str) -> Self
pub fn delimiter(self, delimiter: &'b str) -> Self
Optional parameter to specify the delimiter character for a delimited file - must be a single character
sourcepub fn error_trace(self, error_trace: bool) -> Self
pub fn error_trace(self, error_trace: bool) -> Self
Include the stack trace of returned errors.
sourcepub fn explain(self, explain: bool) -> Self
pub fn explain(self, explain: bool) -> Self
Whether to include a commentary on how the structure was derived
sourcepub fn filter_path(self, filter_path: &'b [&'b str]) -> Self
pub fn filter_path(self, filter_path: &'b [&'b str]) -> Self
A comma-separated list of filters used to reduce the response.
sourcepub fn format(self, format: Format) -> Self
pub fn format(self, format: Format) -> Self
Optional parameter to specify the high level file format
sourcepub fn grok_pattern(self, grok_pattern: &'b str) -> Self
pub fn grok_pattern(self, grok_pattern: &'b str) -> Self
Optional parameter to specify the Grok pattern that should be used to extract fields from messages in a semi-structured text file
sourcepub fn has_header_row(self, has_header_row: bool) -> Self
pub fn has_header_row(self, has_header_row: bool) -> Self
Optional parameter to specify whether a delimited file includes the column names in its first row
sourcepub fn header(self, key: HeaderName, value: HeaderValue) -> Self
pub fn header(self, key: HeaderName, value: HeaderValue) -> Self
Adds a HTTP header
sourcepub fn line_merge_size_limit(self, line_merge_size_limit: i32) -> Self
pub fn line_merge_size_limit(self, line_merge_size_limit: i32) -> Self
Maximum number of characters permitted in a single message when lines are merged to create messages.
sourcepub fn lines_to_sample(self, lines_to_sample: i32) -> Self
pub fn lines_to_sample(self, lines_to_sample: i32) -> Self
How many lines of the file should be included in the analysis
sourcepub fn quote(self, quote: &'b str) -> Self
pub fn quote(self, quote: &'b str) -> Self
Optional parameter to specify the quote character for a delimited file - must be a single character
sourcepub fn request_timeout(self, timeout: Duration) -> Self
pub fn request_timeout(self, timeout: Duration) -> Self
Sets a request timeout for this API call.
The timeout is applied from when the request starts connecting until the response body has finished.
sourcepub fn should_trim_fields(self, should_trim_fields: bool) -> Self
pub fn should_trim_fields(self, should_trim_fields: bool) -> Self
Optional parameter to specify whether the values between delimiters in a delimited file should have whitespace trimmed from them
sourcepub fn source(self, source: &'b str) -> Self
pub fn source(self, source: &'b str) -> Self
The URL-encoded request definition. Useful for libraries that do not accept a request body for non-POST requests.
sourcepub fn timeout(self, timeout: &'b str) -> Self
pub fn timeout(self, timeout: &'b str) -> Self
Timeout after which the analysis will be aborted
sourcepub fn timestamp_field(self, timestamp_field: &'b str) -> Self
pub fn timestamp_field(self, timestamp_field: &'b str) -> Self
Optional parameter to specify the timestamp field in the file
sourcepub fn timestamp_format(self, timestamp_format: &'b str) -> Self
pub fn timestamp_format(self, timestamp_format: &'b str) -> Self
Optional parameter to specify the timestamp format in the file - may be either a Joda or Java time format
Trait Implementations
sourceimpl<'a, 'b, B: Clone> Clone for TextStructureFindStructure<'a, 'b, B>
impl<'a, 'b, B: Clone> Clone for TextStructureFindStructure<'a, 'b, B>
sourcefn clone(&self) -> TextStructureFindStructure<'a, 'b, B>
fn clone(&self) -> TextStructureFindStructure<'a, 'b, B>
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
Auto Trait Implementations
impl<'a, 'b, B> !RefUnwindSafe for TextStructureFindStructure<'a, 'b, B>
impl<'a, 'b, B> Send for TextStructureFindStructure<'a, 'b, B> where
B: Send,
impl<'a, 'b, B> Sync for TextStructureFindStructure<'a, 'b, B> where
B: Sync,
impl<'a, 'b, B> Unpin for TextStructureFindStructure<'a, 'b, B> where
B: Unpin,
impl<'a, 'b, B> !UnwindSafe for TextStructureFindStructure<'a, 'b, B>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more