pub struct ModelSelection {
pub provider: String,
pub model: String,
}Expand description
Model selection key: a (provider vendor, model id) pair.
The same model id can be declared by multiple providers (multiple gateways with the
same model), so selection must include both the provider vendor and the model id.
provider refers to ProviderInfo::vendor.
Fields§
§provider: String§model: StringTrait Implementations§
Source§impl Clone for ModelSelection
impl Clone for ModelSelection
Source§fn clone(&self) -> ModelSelection
fn clone(&self) -> ModelSelection
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 ModelSelection
impl Debug for ModelSelection
impl Eq for ModelSelection
Source§impl PartialEq for ModelSelection
impl PartialEq for ModelSelection
Source§fn eq(&self, other: &ModelSelection) -> bool
fn eq(&self, other: &ModelSelection) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ModelSelection
Auto Trait Implementations§
impl Freeze for ModelSelection
impl RefUnwindSafe for ModelSelection
impl Send for ModelSelection
impl Sync for ModelSelection
impl Unpin for ModelSelection
impl UnsafeUnpin for ModelSelection
impl UnwindSafe for ModelSelection
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