pub struct RAGInjectionConfig {
pub enabled_categories: HashSet<RAGInjectionCategory>,
pub scan_decoded_base64: bool,
pub max_scan_depth: usize,
}Expand description
Configuration for the RAG injection guard.
Fields§
§enabled_categories: HashSet<RAGInjectionCategory>Which categories to scan for.
scan_decoded_base64: boolWhether to decode and scan base64-encoded content found in documents.
max_scan_depth: usizeMaximum scan depth for nested content (e.g., comments within comments).
Trait Implementations§
Source§impl Clone for RAGInjectionConfig
impl Clone for RAGInjectionConfig
Source§fn clone(&self) -> RAGInjectionConfig
fn clone(&self) -> RAGInjectionConfig
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 RAGInjectionConfig
impl Debug for RAGInjectionConfig
Source§impl Default for RAGInjectionConfig
impl Default for RAGInjectionConfig
Source§impl<'de> Deserialize<'de> for RAGInjectionConfig
impl<'de> Deserialize<'de> for RAGInjectionConfig
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 RAGInjectionConfig
impl RefUnwindSafe for RAGInjectionConfig
impl Send for RAGInjectionConfig
impl Sync for RAGInjectionConfig
impl Unpin for RAGInjectionConfig
impl UnwindSafe for RAGInjectionConfig
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