pub struct ParsingConfig {
pub primary_tag: String,
pub extraction_strategies: Vec<ExtractionStrategy>,
pub debug_mode: bool,
pub max_content_length: Option<usize>,
}Expand description
Configuration for response parsing
Fields§
§primary_tag: StringPrimary tag to look for (e.g., “answer”, “response”)
extraction_strategies: Vec<ExtractionStrategy>Ordered list of extraction strategies to try
debug_mode: boolWhether to enable debug logging
max_content_length: Option<usize>Maximum content length to process
Implementations§
Source§impl ParsingConfig
impl ParsingConfig
Sourcepub fn add_strategy(self, strategy: ExtractionStrategy) -> Self
pub fn add_strategy(self, strategy: ExtractionStrategy) -> Self
Add extraction strategy
Sourcepub fn with_debug(self) -> Self
pub fn with_debug(self) -> Self
Enable debug mode
Trait Implementations§
Source§impl Clone for ParsingConfig
impl Clone for ParsingConfig
Source§fn clone(&self) -> ParsingConfig
fn clone(&self) -> ParsingConfig
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 ParsingConfig
impl Debug for ParsingConfig
Auto Trait Implementations§
impl Freeze for ParsingConfig
impl RefUnwindSafe for ParsingConfig
impl Send for ParsingConfig
impl Sync for ParsingConfig
impl Unpin for ParsingConfig
impl UnwindSafe for ParsingConfig
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