pub struct ExtractionConfigBuilder<S: State = Empty> { /* private fields */ }Expand description
Use builder syntax to set the inputs and finish with build().
Implementations§
Source§impl<S: State> ExtractionConfigBuilder<S>
impl<S: State> ExtractionConfigBuilder<S>
Sourcepub fn build(self) -> ExtractionConfigwhere
S: IsComplete,
pub fn build(self) -> ExtractionConfigwhere
S: IsComplete,
Finish building and return the requested object
Sourcepub fn trigger(
self,
value: Vec<Arc<dyn ExtractionTrigger>>,
) -> ExtractionConfigBuilder<SetTrigger<S>>where
S::Trigger: IsUnset,
pub fn trigger(
self,
value: Vec<Arc<dyn ExtractionTrigger>>,
) -> ExtractionConfigBuilder<SetTrigger<S>>where
S::Trigger: IsUnset,
Sourcepub fn maybe_trigger(
self,
value: Option<Vec<Arc<dyn ExtractionTrigger>>>,
) -> ExtractionConfigBuilder<SetTrigger<S>>where
S::Trigger: IsUnset,
pub fn maybe_trigger(
self,
value: Option<Vec<Arc<dyn ExtractionTrigger>>>,
) -> ExtractionConfigBuilder<SetTrigger<S>>where
S::Trigger: IsUnset,
Sourcepub fn extractor(
self,
value: Arc<dyn Extractor>,
) -> ExtractionConfigBuilder<SetExtractor<S>>where
S::Extractor: IsUnset,
pub fn extractor(
self,
value: Arc<dyn Extractor>,
) -> ExtractionConfigBuilder<SetExtractor<S>>where
S::Extractor: IsUnset,
Optional (Some / Option setters).
How messages become entries (client-side; the store must implement add). None hands
the raw messages to add_messages when the store implements it, and otherwise uses a
ModelExtractor.
Sourcepub fn maybe_extractor(
self,
value: Option<Arc<dyn Extractor>>,
) -> ExtractionConfigBuilder<SetExtractor<S>>where
S::Extractor: IsUnset,
pub fn maybe_extractor(
self,
value: Option<Arc<dyn Extractor>>,
) -> ExtractionConfigBuilder<SetExtractor<S>>where
S::Extractor: IsUnset,
Optional (Some / Option setters).
How messages become entries (client-side; the store must implement add). None hands
the raw messages to add_messages when the store implements it, and otherwise uses a
ModelExtractor.
Sourcepub fn filter(
self,
value: MemoryMessageFilter,
) -> ExtractionConfigBuilder<SetFilter<S>>where
S::Filter: IsUnset,
pub fn filter(
self,
value: MemoryMessageFilter,
) -> ExtractionConfigBuilder<SetFilter<S>>where
S::Filter: IsUnset,
Optional (Some / Option setters).
Block kinds to strip first. Defaults to MemoryMessageFilter::default.
Sourcepub fn maybe_filter(
self,
value: Option<MemoryMessageFilter>,
) -> ExtractionConfigBuilder<SetFilter<S>>where
S::Filter: IsUnset,
pub fn maybe_filter(
self,
value: Option<MemoryMessageFilter>,
) -> ExtractionConfigBuilder<SetFilter<S>>where
S::Filter: IsUnset,
Optional (Some / Option setters).
Block kinds to strip first. Defaults to MemoryMessageFilter::default.
Auto Trait Implementations§
impl<S = Empty> !RefUnwindSafe for ExtractionConfigBuilder<S>
impl<S = Empty> !UnwindSafe for ExtractionConfigBuilder<S>
impl<S> Freeze for ExtractionConfigBuilder<S>
impl<S> Send for ExtractionConfigBuilder<S>
impl<S> Sync for ExtractionConfigBuilder<S>
impl<S> Unpin for ExtractionConfigBuilder<S>
impl<S> UnsafeUnpin for ExtractionConfigBuilder<S>
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
§impl<T> FutureExt for T
impl<T> FutureExt for T
§fn with_context(self, otel_cx: Context) -> WithContext<Self> ⓘ
fn with_context(self, otel_cx: Context) -> WithContext<Self> ⓘ
§fn with_current_context(self) -> WithContext<Self> ⓘ
fn with_current_context(self) -> WithContext<Self> ⓘ
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> 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> ⓘ
Converts
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> ⓘ
Converts
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 moreCreates a shared type from an unshared type.