pub enum CustomClassifierPolicy {
TargetSelector {
selector: String,
},
}Expand description
Policy that maps a custom classifier verdict to a routing target.
Variants§
TargetSelector
Resolves a JSON Pointer and treats its string value as a model category.
Implementations§
Source§impl CustomClassifierPolicy
impl CustomClassifierPolicy
Sourcepub fn target_selector(selector: impl Into<String>) -> Self
pub fn target_selector(selector: impl Into<String>) -> Self
Creates a policy that selects a model category through a JSON Pointer.
Trait Implementations§
Source§impl Clone for CustomClassifierPolicy
impl Clone for CustomClassifierPolicy
Auto Trait Implementations§
impl Forget for CustomClassifierPolicy
impl Freeze for CustomClassifierPolicy
impl Move for CustomClassifierPolicy
impl RefUnwindSafe for CustomClassifierPolicy
impl Send for CustomClassifierPolicy
impl Sync for CustomClassifierPolicy
impl Unpin for CustomClassifierPolicy
impl UnsafeUnpin for CustomClassifierPolicy
impl UnwindSafe for CustomClassifierPolicy
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