pub struct CreateEmbeddingRequest {
pub input: CreateEmbeddingRequest_Input,
pub model: CreateEmbeddingRequest_Model,
pub encoding_format: Option<String>,
pub dimensions: Option<i64>,
pub user: Option<String>,
}
Fields§
§input: CreateEmbeddingRequest_Input
§model: CreateEmbeddingRequest_Model
§encoding_format: Option<String>
The format to return the embeddings in.
dimensions: Option<i64>
The number of dimensions the resulting output embeddings should have.
user: Option<String>
A unique identifier representing your end-user, which can help OpenAI to monitor and detect abuse.
Trait Implementations§
Source§impl Clone for CreateEmbeddingRequest
impl Clone for CreateEmbeddingRequest
Source§fn clone(&self) -> CreateEmbeddingRequest
fn clone(&self) -> CreateEmbeddingRequest
Returns a copy 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 moreAuto Trait Implementations§
impl Freeze for CreateEmbeddingRequest
impl RefUnwindSafe for CreateEmbeddingRequest
impl Send for CreateEmbeddingRequest
impl Sync for CreateEmbeddingRequest
impl Unpin for CreateEmbeddingRequest
impl UnwindSafe for CreateEmbeddingRequest
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