pub struct ClassifierService;Expand description
Pure implementation of the generated classifier capability.
Implementations§
Source§impl ClassifierService
impl ClassifierService
Sourcepub async fn classify(
&self,
_context: CallContext,
request: ClassifyRequest,
) -> Result<ClassifyOutcome, ClassifierError>
pub async fn classify( &self, _context: CallContext, request: ClassifyRequest, ) -> Result<ClassifyOutcome, ClassifierError>
Classifies strict canonical schema bytes without consulting ambient state.
Trait Implementations§
Source§impl ClassifierDispatch for ClassifierService
impl ClassifierDispatch for ClassifierService
fn classify<'a>( &'a self, context: CallContext, input: ClassifyRequest, ) -> Pin<Box<dyn Future<Output = Result<ClassifyOutcome, ClassifierError>> + Send + 'a>>
Auto Trait Implementations§
impl Freeze for ClassifierService
impl RefUnwindSafe for ClassifierService
impl Send for ClassifierService
impl Sync for ClassifierService
impl Unpin for ClassifierService
impl UnsafeUnpin for ClassifierService
impl UnwindSafe for ClassifierService
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