pub enum ModelValidator {
Default,
DeepSeekV1,
}
Expand description
Defines the validation strategy for a given model.
This enum replaces the previous trait-based approach to resolve dyn
compatibility issues.
It allows for static dispatch, which is more performant and avoids the complexities of
object safety.
Variants§
Default
The default validation, which performs no special checks.
DeepSeekV1
Validation specific to the deepseek-r1
model.
Implementations§
Source§impl ModelValidator
impl ModelValidator
Auto Trait Implementations§
impl Freeze for ModelValidator
impl RefUnwindSafe for ModelValidator
impl Send for ModelValidator
impl Sync for ModelValidator
impl Unpin for ModelValidator
impl UnwindSafe for ModelValidator
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