pub trait SuggestorProfile {
// Required methods
fn role(&self) -> SuggestorRole;
fn output_keys(&self) -> &[ContextKey];
fn cost_hint(&self) -> CostClass;
fn latency_hint(&self) -> LatencyClass;
fn capabilities(&self) -> &[SuggestorCapability];
fn confidence_range(&self) -> (f32, f32);
}Expand description
Describes the shape and operating envelope of a suggestor.
Required Methods§
fn role(&self) -> SuggestorRole
fn output_keys(&self) -> &[ContextKey]
fn cost_hint(&self) -> CostClass
fn latency_hint(&self) -> LatencyClass
fn capabilities(&self) -> &[SuggestorCapability]
fn confidence_range(&self) -> (f32, f32)
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".