pub struct ModeratePolicy {
pub fields: Vec<String>,
pub provider: String,
pub model: String,
pub sync_gate: bool,
pub degraded_mode: ModerateDegradedMode,
pub reject_action: ModerateRejectAction,
pub hard_delete_on_reject: bool,
}Expand description
MODERATE (fields = (...), provider, model, sync, degraded, on_reject, hard_delete).
Fields§
§fields: Vec<String>Source fields screened by the moderation provider.
provider: String§model: String§sync_gate: boolWhen true the moderation check is a synchronous gate on the write
(sync = true); when false it runs out-of-band.
degraded_mode: ModerateDegradedModeBehaviour when the moderation provider is unavailable.
reject_action: ModerateRejectActionWhat happens to content that fails moderation.
hard_delete_on_reject: boolWhen true (hard_delete = true), a quarantined row that
re-moderates to a reject is hard-deleted instead of being
tombstoned-and-retained for audit/appeal (the default). Opt-in
per-collection because hard-delete forfeits the audit trail.
Trait Implementations§
Source§impl Clone for ModeratePolicy
impl Clone for ModeratePolicy
Source§impl Debug for ModeratePolicy
impl Debug for ModeratePolicy
impl Eq for ModeratePolicy
Source§impl PartialEq for ModeratePolicy
impl PartialEq for ModeratePolicy
impl StructuralPartialEq for ModeratePolicy
Auto Trait Implementations§
impl Forget for ModeratePolicy
impl Freeze for ModeratePolicy
impl Move for ModeratePolicy
impl RefUnwindSafe for ModeratePolicy
impl Send for ModeratePolicywhere
RawVecInner: Send,
impl Sync for ModeratePolicywhere
RawVecInner: Sync,
impl Unpin for ModeratePolicy
impl UnsafeUnpin for ModeratePolicywhere
*const u8 is !null: UnsafeUnpin,
PhantomData<String>: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
impl UnwindSafe for ModeratePolicywhere
RawVecInner: UnwindSafe,
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