pub struct Embeddings {
pub input: Input,
pub model: String,
pub dimensions: Option<usize>,
pub user: Option<String>,
}
Expand description
Embeddings request structure.
You can easily construct the input using .into():
let embeddings = mini_openai::Embeddings {
input: "Hello".into(),
..Default::default()
};
Fields§
§input: Input
§model: String
§dimensions: Option<usize>
§user: Option<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
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