pub enum ModelProviderCategory {
Primary,
OpenAiCompatible,
FastInference,
ModelHosting,
ChineseAi,
CloudEndpoint,
}Expand description
Grouping for a model-provider family. Replaces the section comments in the
registry list with data so surfaces (CLI list, docs capability table) can
group families without re-typing the membership. Mirrors the registry’s
own sections exactly; locality is the separate local flag, not a category.
Variants§
Primary
First-party / flagship vendor APIs.
OpenAiCompatible
OpenAI-compatible HTTP endpoints, each with its own canonical slot.
FastInference
Low-latency inference endpoints.
ModelHosting
Model-hosting / aggregation platforms.
ChineseAi
Chinese AI model providers.
CloudEndpoint
Cloud-vendor AI endpoints.
Implementations§
Source§impl ModelProviderCategory
impl ModelProviderCategory
Sourcepub fn as_str(self) -> &'static str
pub fn as_str(self) -> &'static str
Stable identifier for this category, matching the Rust variant name. Surfaces address a category by this token (CLI filters, docs directives) without re-typing the variant set.
Sourcepub fn all() -> &'static [ModelProviderCategory]
pub fn all() -> &'static [ModelProviderCategory]
Every category, in registry display order. Lets surfaces walk the set instead of hardcoding it.
Trait Implementations§
Source§impl Clone for ModelProviderCategory
impl Clone for ModelProviderCategory
Source§fn clone(&self) -> ModelProviderCategory
fn clone(&self) -> ModelProviderCategory
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for ModelProviderCategory
impl Debug for ModelProviderCategory
Source§impl PartialEq for ModelProviderCategory
impl PartialEq for ModelProviderCategory
impl Copy for ModelProviderCategory
impl Eq for ModelProviderCategory
impl StructuralPartialEq for ModelProviderCategory
Auto Trait Implementations§
impl Freeze for ModelProviderCategory
impl RefUnwindSafe for ModelProviderCategory
impl Send for ModelProviderCategory
impl Sync for ModelProviderCategory
impl Unpin for ModelProviderCategory
impl UnsafeUnpin for ModelProviderCategory
impl UnwindSafe for ModelProviderCategory
Blanket Implementations§
§impl<T> AnyEq for T
impl<T> AnyEq for T
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more