pub struct LLMSecurity { /* private fields */ }Expand description
Main LLM Security struct
Implementations§
Source§impl LLMSecurity
impl LLMSecurity
Sourcepub fn new(config: LLMSecurityConfig) -> Self
pub fn new(config: LLMSecurityConfig) -> Self
Create a new LLM Security instance
Sourcepub fn config(&self) -> &LLMSecurityConfig
pub fn config(&self) -> &LLMSecurityConfig
Get the current configuration
Sourcepub fn update_config(&mut self, config: LLMSecurityConfig)
pub fn update_config(&mut self, config: LLMSecurityConfig)
Update the configuration
Auto Trait Implementations§
impl Freeze for LLMSecurity
impl RefUnwindSafe for LLMSecurity
impl Send for LLMSecurity
impl Sync for LLMSecurity
impl Unpin for LLMSecurity
impl UnwindSafe for LLMSecurity
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