pub struct GeminiModelMapping {
pub mappings: HashMap<String, String>,
}Expand description
Gemini model mapping configuration.
Used to map OpenAI-compatible model ids (e.g. “gemini-pro”) to the actual upstream Gemini model id that should be used by the provider.
Fields§
§mappings: HashMap<String, String>Trait Implementations§
Source§impl Clone for GeminiModelMapping
impl Clone for GeminiModelMapping
Source§fn clone(&self) -> GeminiModelMapping
fn clone(&self) -> GeminiModelMapping
Returns a duplicate of the value. Read more
1.0.0 · 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 GeminiModelMapping
impl Debug for GeminiModelMapping
Source§impl Default for GeminiModelMapping
impl Default for GeminiModelMapping
Source§fn default() -> GeminiModelMapping
fn default() -> GeminiModelMapping
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for GeminiModelMapping
impl<'de> Deserialize<'de> for GeminiModelMapping
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for GeminiModelMapping
impl RefUnwindSafe for GeminiModelMapping
impl Send for GeminiModelMapping
impl Sync for GeminiModelMapping
impl Unpin for GeminiModelMapping
impl UnsafeUnpin for GeminiModelMapping
impl UnwindSafe for GeminiModelMapping
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