pub struct CohereEmbedRequest {
pub model: String,
pub texts: Vec<String>,
pub input_type: String,
pub embedding_types: Vec<String>,
}Expand description
Cohere embed API request body (v2).
Fields§
§model: StringModel identifier (e.g., "embed-english-v3.0").
texts: Vec<String>Texts to embed.
input_type: StringInput type hint (e.g., "search_document", "search_query").
embedding_types: Vec<String>Which embedding types to return.
Trait Implementations§
Source§impl Debug for CohereEmbedRequest
impl Debug for CohereEmbedRequest
Auto Trait Implementations§
impl Freeze for CohereEmbedRequest
impl RefUnwindSafe for CohereEmbedRequest
impl Send for CohereEmbedRequest
impl Sync for CohereEmbedRequest
impl Unpin for CohereEmbedRequest
impl UnsafeUnpin for CohereEmbedRequest
impl UnwindSafe for CohereEmbedRequest
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