#[non_exhaustive]pub struct CategoriesBuilder { /* private fields */ }
Expand description
A builder for Categories
.
Implementations§
source§impl CategoriesBuilder
impl CategoriesBuilder
sourcepub fn matched_categories(self, input: impl Into<String>) -> Self
pub fn matched_categories(self, input: impl Into<String>) -> Self
Appends an item to matched_categories
.
To override the contents of this collection use set_matched_categories
.
The category rules that have been matched in the analyzed segment.
sourcepub fn set_matched_categories(self, input: Option<Vec<String>>) -> Self
pub fn set_matched_categories(self, input: Option<Vec<String>>) -> Self
The category rules that have been matched in the analyzed segment.
sourcepub fn get_matched_categories(&self) -> &Option<Vec<String>>
pub fn get_matched_categories(&self) -> &Option<Vec<String>>
The category rules that have been matched in the analyzed segment.
sourcepub fn matched_details(self, k: impl Into<String>, v: CategoryDetails) -> Self
pub fn matched_details(self, k: impl Into<String>, v: CategoryDetails) -> Self
Adds a key-value pair to matched_details
.
To override the contents of this collection use set_matched_details
.
The category rule that was matched and when it occurred in the transcript.
sourcepub fn set_matched_details(
self,
input: Option<HashMap<String, CategoryDetails>>,
) -> Self
pub fn set_matched_details( self, input: Option<HashMap<String, CategoryDetails>>, ) -> Self
The category rule that was matched and when it occurred in the transcript.
sourcepub fn get_matched_details(&self) -> &Option<HashMap<String, CategoryDetails>>
pub fn get_matched_details(&self) -> &Option<HashMap<String, CategoryDetails>>
The category rule that was matched and when it occurred in the transcript.
sourcepub fn build(self) -> Categories
pub fn build(self) -> Categories
Consumes the builder and constructs a Categories
.
Trait Implementations§
source§impl Clone for CategoriesBuilder
impl Clone for CategoriesBuilder
source§fn clone(&self) -> CategoriesBuilder
fn clone(&self) -> CategoriesBuilder
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for CategoriesBuilder
impl Debug for CategoriesBuilder
source§impl Default for CategoriesBuilder
impl Default for CategoriesBuilder
source§fn default() -> CategoriesBuilder
fn default() -> CategoriesBuilder
Returns the “default value” for a type. Read more
source§impl PartialEq for CategoriesBuilder
impl PartialEq for CategoriesBuilder
source§fn eq(&self, other: &CategoriesBuilder) -> bool
fn eq(&self, other: &CategoriesBuilder) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for CategoriesBuilder
Auto Trait Implementations§
impl Freeze for CategoriesBuilder
impl RefUnwindSafe for CategoriesBuilder
impl Send for CategoriesBuilder
impl Sync for CategoriesBuilder
impl Unpin for CategoriesBuilder
impl UnwindSafe for CategoriesBuilder
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
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>
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.