Struct aws_sdk_glue::types::GrokClassifier
source · #[non_exhaustive]pub struct GrokClassifier {
pub name: String,
pub classification: String,
pub creation_time: Option<DateTime>,
pub last_updated: Option<DateTime>,
pub version: i64,
pub grok_pattern: String,
pub custom_patterns: Option<String>,
}
Expand description
A classifier that uses grok
patterns.
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.
classification: String
An identifier of the data format that the classifier matches, such as Twitter, JSON, Omniture logs, and so on.
creation_time: Option<DateTime>
The time that this classifier was registered.
last_updated: Option<DateTime>
The time that this classifier was last updated.
version: i64
The version of this classifier.
grok_pattern: String
The grok pattern applied to a data store by this classifier. For more information, see built-in patterns in Writing Custom Classifiers.
custom_patterns: Option<String>
Optional custom grok patterns defined by this classifier. For more information, see custom patterns in Writing Custom Classifiers.
Implementations§
source§impl GrokClassifier
impl GrokClassifier
sourcepub fn classification(&self) -> &str
pub fn classification(&self) -> &str
An identifier of the data format that the classifier matches, such as Twitter, JSON, Omniture logs, and so on.
sourcepub fn creation_time(&self) -> Option<&DateTime>
pub fn creation_time(&self) -> Option<&DateTime>
The time that this classifier was registered.
sourcepub fn last_updated(&self) -> Option<&DateTime>
pub fn last_updated(&self) -> Option<&DateTime>
The time that this classifier was last updated.
sourcepub fn grok_pattern(&self) -> &str
pub fn grok_pattern(&self) -> &str
The grok pattern applied to a data store by this classifier. For more information, see built-in patterns in Writing Custom Classifiers.
sourcepub fn custom_patterns(&self) -> Option<&str>
pub fn custom_patterns(&self) -> Option<&str>
Optional custom grok patterns defined by this classifier. For more information, see custom patterns in Writing Custom Classifiers.
source§impl GrokClassifier
impl GrokClassifier
sourcepub fn builder() -> GrokClassifierBuilder
pub fn builder() -> GrokClassifierBuilder
Creates a new builder-style object to manufacture GrokClassifier
.
Trait Implementations§
source§impl Clone for GrokClassifier
impl Clone for GrokClassifier
source§fn clone(&self) -> GrokClassifier
fn clone(&self) -> GrokClassifier
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for GrokClassifier
impl Debug for GrokClassifier
source§impl PartialEq for GrokClassifier
impl PartialEq for GrokClassifier
source§fn eq(&self, other: &GrokClassifier) -> bool
fn eq(&self, other: &GrokClassifier) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for GrokClassifier
Auto Trait Implementations§
impl Freeze for GrokClassifier
impl RefUnwindSafe for GrokClassifier
impl Send for GrokClassifier
impl Sync for GrokClassifier
impl Unpin for GrokClassifier
impl UnwindSafe for GrokClassifier
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