pub struct CatalogModel {
pub public_id: &'static str,
pub cloud: Platform,
pub upstream_id: &'static str,
pub protocol: Protocol,
}Expand description
One curated model: the public id an app requests, the cloud that serves it, the upstream id the gateway forwards (for Azure this is the deployment name), and the protocol of its native endpoint.
Fields§
§public_id: &'static str§cloud: Platform§upstream_id: &'static str§protocol: ProtocolImplementations§
Source§impl CatalogModel
impl CatalogModel
Sourcepub fn provider(&self) -> &'static str
pub fn provider(&self) -> &'static str
The model’s publisher, for grouping in a picker. Derived from the public id, so the same public id reports the same provider on every cloud.
Sourcepub fn display_name(&self) -> &'static str
pub fn display_name(&self) -> &'static str
A human label for a model picker. Curated per id rather than derived so the acronyms (GPT, OSS, GLM, VL) and versions read correctly.
Sourcepub fn activation(&self) -> Activation
pub fn activation(&self) -> Activation
The one-time enablement step for this model on its cloud, if any. Only Claude needs one today, and the step differs per cloud.
Trait Implementations§
Source§impl Clone for CatalogModel
impl Clone for CatalogModel
Source§fn clone(&self) -> CatalogModel
fn clone(&self) -> CatalogModel
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for CatalogModel
impl RefUnwindSafe for CatalogModel
impl Send for CatalogModel
impl Sync for CatalogModel
impl Unpin for CatalogModel
impl UnsafeUnpin for CatalogModel
impl UnwindSafe for CatalogModel
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