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 configured target label.
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 target label through a JSON Pointer.
Trait Implementations§
Source§impl Clone for CustomClassifierPolicy
impl Clone for CustomClassifierPolicy
Source§fn clone(&self) -> CustomClassifierPolicy
fn clone(&self) -> CustomClassifierPolicy
Returns a duplicate of the value. Read more
1.0.0 · 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 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