pub struct StandardModelListResponse {
pub inner: StandardModelListResponseInner,
pub backend: LLMBackend,
}Expand description
Standard model list response structure used by OpenAI-compatible providers
Fields§
§inner: StandardModelListResponseInner§backend: LLMBackendTrait Implementations§
Source§impl Clone for StandardModelListResponse
impl Clone for StandardModelListResponse
Source§impl Debug for StandardModelListResponse
impl Debug for StandardModelListResponse
Source§impl ModelListResponse for StandardModelListResponse
impl ModelListResponse for StandardModelListResponse
fn get_models(&self) -> Vec<String>
fn get_models_raw(&self) -> Vec<Box<dyn ModelListRawEntry>>
Source§fn get_backend(&self) -> String
fn get_backend(&self) -> String
Returns an identifier for the backend that produced this response.
Built-in providers return their canonical lowercase name (e.g.
"openai",
"anthropic"). Third-party implementors may return any string that uniquely identifies their backendAuto Trait Implementations§
impl Freeze for StandardModelListResponse
impl RefUnwindSafe for StandardModelListResponse
impl Send for StandardModelListResponse
impl Sync for StandardModelListResponse
impl Unpin for StandardModelListResponse
impl UnsafeUnpin for StandardModelListResponse
impl UnwindSafe for StandardModelListResponse
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<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§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> ⓘ
Converts
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> ⓘ
Converts
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