#[non_exhaustive]pub enum Model {
Needle,
Whistle,
}Expand description
One of the models the engine can hold.
The enum is #[non_exhaustive]: matching it needs a _ arm, and a model added by a later
engine is not a breaking change.
§Examples
use cactus_rs::Model;
let model = Model::Needle;
assert_eq!(model.as_str(), "Needle");
assert_eq!(model.archive(), "needle3.cact");Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Needle
Needle 3, the text model: tool calling, structured extraction and text embedding.
Whistle
Whistle, the speech model: transcription, word timestamps and speech embedding.
Implementations§
Trait Implementations§
impl Copy for Model
Source§impl Display for Model
Writes the model’s name, the same text as Model::as_str.
impl Display for Model
Writes the model’s name, the same text as Model::as_str.
impl Eq for Model
impl StructuralPartialEq for Model
Auto Trait Implementations§
impl Freeze for Model
impl RefUnwindSafe for Model
impl Send for Model
impl Sync for Model
impl Unpin for Model
impl UnsafeUnpin for Model
impl UnwindSafe for Model
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.