pub struct ContentProcessorConfig {
pub max_length: usize,
pub preserve_structure: bool,
pub min_content_length: usize,
pub remove_tags: Vec<String>,
pub decode_entities: bool,
}Expand description
Configuration for the content processor
Fields§
§max_length: usizeMaximum length of processed content (0 = unlimited)
preserve_structure: boolWhether to preserve structural elements like paragraph breaks
min_content_length: usizeMinimum text length to consider valid content
Tags to completely remove (including their content)
decode_entities: boolWhether to decode HTML entities
Trait Implementations§
Source§impl Clone for ContentProcessorConfig
impl Clone for ContentProcessorConfig
Source§fn clone(&self) -> ContentProcessorConfig
fn clone(&self) -> ContentProcessorConfig
Returns a duplicate 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 ContentProcessorConfig
impl Debug for ContentProcessorConfig
Auto Trait Implementations§
impl Freeze for ContentProcessorConfig
impl RefUnwindSafe for ContentProcessorConfig
impl Send for ContentProcessorConfig
impl Sync for ContentProcessorConfig
impl Unpin for ContentProcessorConfig
impl UnwindSafe for ContentProcessorConfig
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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 more