pub struct DirectOpenAiModel {
pub public_id: &'static str,
pub client_apis: &'static [ClientApi],
}Expand description
One OpenAI model qualified through the Gateway’s direct-provider route.
OpenAI’s account model listing also contains embeddings, image, audio,
moderation, realtime, and other APIs. Keep this list explicit so
GET /v1/models never claims that an observed provider model is callable
through Chat Completions or Responses when it is not.
Fields§
§public_id: &'static str§client_apis: &'static [ClientApi]Trait Implementations§
Source§impl Clone for DirectOpenAiModel
impl Clone for DirectOpenAiModel
Source§fn clone(&self) -> DirectOpenAiModel
fn clone(&self) -> DirectOpenAiModel
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 moreimpl Copy for DirectOpenAiModel
Auto Trait Implementations§
impl Freeze for DirectOpenAiModel
impl RefUnwindSafe for DirectOpenAiModel
impl Send for DirectOpenAiModel
impl Sync for DirectOpenAiModel
impl Unpin for DirectOpenAiModel
impl UnsafeUnpin for DirectOpenAiModel
impl UnwindSafe for DirectOpenAiModel
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