pub struct Embeddings {
pub model: Model,
pub input: Vec<String>,
}
Expand description
Chat embeddings request
Fields§
§model: Model
§input: Vec<String>
Trait Implementations§
Source§impl Clone for Embeddings
impl Clone for Embeddings
Source§fn clone(&self) -> Embeddings
fn clone(&self) -> Embeddings
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 Embeddings
impl Debug for Embeddings
Source§impl Default for Embeddings
impl Default for Embeddings
Source§impl<'de> Deserialize<'de> for Embeddings
impl<'de> Deserialize<'de> for Embeddings
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
Source§impl From<Embeddings> for Request
impl From<Embeddings> for Request
Source§fn from(value: Embeddings) -> Self
fn from(value: Embeddings) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for Embeddings
impl RefUnwindSafe for Embeddings
impl Send for Embeddings
impl Sync for Embeddings
impl Unpin for Embeddings
impl UnwindSafe for Embeddings
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