pub struct ContentReviewGuard { /* private fields */ }Expand description
Guard that runs content review on outbound SaaS / payment / comms calls.
Implementations§
Source§impl ContentReviewGuard
impl ContentReviewGuard
Sourcepub fn with_config(
config: ContentReviewConfig,
) -> Result<Self, ContentReviewError>
pub fn with_config( config: ContentReviewConfig, ) -> Result<Self, ContentReviewError>
Build a guard with explicit configuration. Returns
ContentReviewError::InvalidPattern if any regex fails to
compile.
Trait Implementations§
Source§impl Default for ContentReviewGuard
impl Default for ContentReviewGuard
Auto Trait Implementations§
impl Freeze for ContentReviewGuard
impl RefUnwindSafe for ContentReviewGuard
impl Send for ContentReviewGuard
impl Sync for ContentReviewGuard
impl Unpin for ContentReviewGuard
impl UnsafeUnpin for ContentReviewGuard
impl UnwindSafe for ContentReviewGuard
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