pub struct RegexGuardrail { /* private fields */ }Implementations§
Source§impl RegexGuardrail
impl RegexGuardrail
pub fn compile(policies: &[GuardrailPolicy]) -> Result<Self, Error>
Trait Implementations§
Source§impl Guardrail for RegexGuardrail
impl Guardrail for RegexGuardrail
fn inspect(&self, request: GuardrailRequest<'_>) -> GuardrailVerdict
Auto Trait Implementations§
impl Freeze for RegexGuardrail
impl RefUnwindSafe for RegexGuardrail
impl Send for RegexGuardrail
impl Sync for RegexGuardrail
impl Unpin for RegexGuardrail
impl UnsafeUnpin for RegexGuardrail
impl UnwindSafe for RegexGuardrail
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