pub struct ProviderModelList {
pub provider: String,
pub models: Vec<String>,
pub error: Option<String>,
}Expand description
Models available from one configured provider (best-effort listing).
Fields§
§provider: String§models: Vec<String>§error: Option<String>Set when this provider’s listing failed (auth missing, network, …); the provider is still usable with an explicitly known model id.
Trait Implementations§
Source§impl Clone for ProviderModelList
impl Clone for ProviderModelList
Source§fn clone(&self) -> ProviderModelList
fn clone(&self) -> ProviderModelList
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 moreSource§impl Debug for ProviderModelList
impl Debug for ProviderModelList
Auto Trait Implementations§
impl Freeze for ProviderModelList
impl RefUnwindSafe for ProviderModelList
impl Send for ProviderModelList
impl Sync for ProviderModelList
impl Unpin for ProviderModelList
impl UnsafeUnpin for ProviderModelList
impl UnwindSafe for ProviderModelList
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