pub enum ExtractionStrategy {
TaggedContent(String),
JsonBrackets,
FirstJsonObject,
KeywordSearch(Vec<String>),
RegexPattern(String),
OriginalText,
}Expand description
Extraction strategy configuration
Variants§
TaggedContent(String)
Extract content within XML-like tags:
JsonBrackets
Extract content within JSON braces: {…}
FirstJsonObject
Find first complete JSON object
KeywordSearch(Vec<String>)
Search for specific keywords and determine type
RegexPattern(String)
Use regex pattern for extraction
OriginalText
Return original text as-is
Trait Implementations§
Source§impl Clone for ExtractionStrategy
impl Clone for ExtractionStrategy
Source§fn clone(&self) -> ExtractionStrategy
fn clone(&self) -> ExtractionStrategy
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 ExtractionStrategy
impl Debug for ExtractionStrategy
Source§impl<'de> Deserialize<'de> for ExtractionStrategy
impl<'de> Deserialize<'de> for ExtractionStrategy
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for ExtractionStrategy
impl RefUnwindSafe for ExtractionStrategy
impl Send for ExtractionStrategy
impl Sync for ExtractionStrategy
impl Unpin for ExtractionStrategy
impl UnwindSafe for ExtractionStrategy
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