pub struct EmbeddingRoute {
pub hint: String,
pub provider: String,
pub model: String,
pub dimensions: Option<usize>,
pub api_key: Option<String>,
}Expand description
An embedding route entry mapping a hint to an embedding provider+model.
Fields§
§hint: String§provider: String§model: String§dimensions: Option<usize>§api_key: Option<String>Trait Implementations§
Source§impl Clone for EmbeddingRoute
impl Clone for EmbeddingRoute
Source§fn clone(&self) -> EmbeddingRoute
fn clone(&self) -> EmbeddingRoute
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 EmbeddingRoute
impl Debug for EmbeddingRoute
Source§impl<'de> Deserialize<'de> for EmbeddingRoute
impl<'de> Deserialize<'de> for EmbeddingRoute
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 EmbeddingRoute
impl RefUnwindSafe for EmbeddingRoute
impl Send for EmbeddingRoute
impl Sync for EmbeddingRoute
impl Unpin for EmbeddingRoute
impl UnsafeUnpin for EmbeddingRoute
impl UnwindSafe for EmbeddingRoute
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