#[non_exhaustive]pub enum ModelMatch {
Prefix,
Exact,
Other(String),
}Expand description
availableModelsMatch.
Docs: availableModelsMatch.
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.
Prefix
A model ID entry permits its version and any model ID that extends it with another segment.
Exact
A model ID entry permits only the version it names, so "claude-opus-5" permits
Opus 5 but not claude-opus-5-5. An entry such as "claude-opus-4-5" also permits
its dated Anthropic model ID claude-opus-4-5-20251101. A family alias such as
"opus" still permits the whole family, and best, opusplan, and default
entries are ignored.
Other(String)
A value this crate doesn’t know, as written.
Implementations§
Trait Implementations§
Source§impl AsRef<str> for ModelMatch
impl AsRef<str> for ModelMatch
Source§impl Clone for ModelMatch
impl Clone for ModelMatch
Source§impl Debug for ModelMatch
impl Debug for ModelMatch
Source§impl<'de> Deserialize<'de> for ModelMatch
impl<'de> Deserialize<'de> for ModelMatch
Source§fn deserialize<D: Deserializer<'de>>(d: D) -> Result<Self, D::Error>
fn deserialize<D: Deserializer<'de>>(d: D) -> Result<Self, D::Error>
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for ModelMatch
impl Display for ModelMatch
impl Eq for ModelMatch
Source§impl From<&str> for ModelMatch
impl From<&str> for ModelMatch
Source§impl From<String> for ModelMatch
impl From<String> for ModelMatch
Source§impl Hash for ModelMatch
impl Hash for ModelMatch
Source§impl Ord for ModelMatch
impl Ord for ModelMatch
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialEq for ModelMatch
impl PartialEq for ModelMatch
Source§impl PartialOrd for ModelMatch
impl PartialOrd for ModelMatch
Source§impl Serialize for ModelMatch
impl Serialize for ModelMatch
impl StructuralPartialEq for ModelMatch
Auto Trait Implementations§
impl Forget for ModelMatch
impl Freeze for ModelMatch
impl Move for ModelMatch
impl RefUnwindSafe for ModelMatch
impl Send for ModelMatch
impl Sync for ModelMatch
impl Unpin for ModelMatch
impl UnsafeUnpin for ModelMatch
impl UnwindSafe for ModelMatch
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