pub struct DisabledClassifierService;Expand description
The service a deployment gets when no classifier is configured.
Trait Implementations§
Source§impl ClassifierService for DisabledClassifierService
impl ClassifierService for DisabledClassifierService
Source§fn is_configured(&self) -> bool
fn is_configured(&self) -> bool
Whether the deployment configured a real service.
Source§fn evaluate<'life0, 'async_trait>(
&'life0 self,
_request: ClassificationRequest,
) -> Pin<Box<dyn Future<Output = Result<ClassificationOutcome>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn evaluate<'life0, 'async_trait>(
&'life0 self,
_request: ClassificationRequest,
) -> Pin<Box<dyn Future<Output = Result<ClassificationOutcome>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Answer every question in
request over its state.Source§impl Clone for DisabledClassifierService
impl Clone for DisabledClassifierService
Source§fn clone(&self) -> DisabledClassifierService
fn clone(&self) -> DisabledClassifierService
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 moreSource§impl Debug for DisabledClassifierService
impl Debug for DisabledClassifierService
Source§impl Default for DisabledClassifierService
impl Default for DisabledClassifierService
Source§fn default() -> DisabledClassifierService
fn default() -> DisabledClassifierService
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for DisabledClassifierService
impl RefUnwindSafe for DisabledClassifierService
impl Send for DisabledClassifierService
impl Sync for DisabledClassifierService
impl Unpin for DisabledClassifierService
impl UnsafeUnpin for DisabledClassifierService
impl UnwindSafe for DisabledClassifierService
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