pub struct ModerationOpts {
pub user_did: Option<String>,
pub prefs: ModerationPrefs,
pub label_defs: HashMap<String, Vec<LabelValueDefinition>>,
}Expand description
Top-level moderation options passed to the decision engine.
Fields§
§user_did: Option<String>§prefs: ModerationPrefs§label_defs: HashMap<String, Vec<LabelValueDefinition>>Trait Implementations§
Source§impl Clone for ModerationOpts
impl Clone for ModerationOpts
Source§fn clone(&self) -> ModerationOpts
fn clone(&self) -> ModerationOpts
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for ModerationOpts
impl RefUnwindSafe for ModerationOpts
impl Send for ModerationOpts
impl Sync for ModerationOpts
impl Unpin for ModerationOpts
impl UnsafeUnpin for ModerationOpts
impl UnwindSafe for ModerationOpts
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