pub struct RouteTestCase {
pub label: String,
pub prompt: String,
pub expected: Vec<String>,
pub hints: Option<AutoHint>,
}Expand description
A single test case for the routing classifier.
Fields§
§label: StringShort label for display and tracking.
prompt: StringThe task prompt to classify.
expected: Vec<String>Acceptable route types. Use ["any"] to accept anything.
hints: Option<AutoHint>Optional hints to pass to the router.
Implementations§
Trait Implementations§
Source§impl Clone for RouteTestCase
impl Clone for RouteTestCase
Source§fn clone(&self) -> RouteTestCase
fn clone(&self) -> RouteTestCase
Returns a duplicate of the value. Read more
1.0.0 · 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 RouteTestCase
impl Debug for RouteTestCase
Source§impl<'de> Deserialize<'de> for RouteTestCase
impl<'de> Deserialize<'de> for RouteTestCase
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for RouteTestCase
impl RefUnwindSafe for RouteTestCase
impl Send for RouteTestCase
impl Sync for RouteTestCase
impl Unpin for RouteTestCase
impl UnsafeUnpin for RouteTestCase
impl UnwindSafe for RouteTestCase
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