pub struct ComplexityScorerBuilder { /* private fields */ }Expand description
Builder for ComplexityScorer
Implementations§
Source§impl ComplexityScorerBuilder
impl ComplexityScorerBuilder
Sourcepub fn provider(self, provider: Arc<dyn Provider>) -> Self
pub fn provider(self, provider: Arc<dyn Provider>) -> Self
Set the provider to use for complexity scoring.
Sourcepub fn model_id(self, model_id: impl Into<String>) -> Self
pub fn model_id(self, model_id: impl Into<String>) -> Self
Set the model ID to use for inference.
Sourcepub fn build(self) -> Option<ComplexityScorer>
pub fn build(self) -> Option<ComplexityScorer>
Build the complexity scorer, returning None if no provider was set.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ComplexityScorerBuilder
impl !RefUnwindSafe for ComplexityScorerBuilder
impl Send for ComplexityScorerBuilder
impl Sync for ComplexityScorerBuilder
impl Unpin for ComplexityScorerBuilder
impl UnsafeUnpin for ComplexityScorerBuilder
impl !UnwindSafe for ComplexityScorerBuilder
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