pub struct EmbeddingResponse { /* private fields */ }Expand description
A mocked embedding response — vector shape and determinism
(mirrors org.mockserver.model.EmbeddingResponse).
Implementations§
Source§impl EmbeddingResponse
impl EmbeddingResponse
Sourcepub fn with_dimensions(self, dimensions: i64) -> Self
pub fn with_dimensions(self, dimensions: i64) -> Self
Set the embedding vector dimensionality.
Sourcepub fn with_deterministic_from_input(self, deterministic: bool) -> Self
pub fn with_deterministic_from_input(self, deterministic: bool) -> Self
Whether the embedding should be deterministically derived from input.
Trait Implementations§
Source§impl Clone for EmbeddingResponse
impl Clone for EmbeddingResponse
Source§fn clone(&self) -> EmbeddingResponse
fn clone(&self) -> EmbeddingResponse
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 EmbeddingResponse
impl Debug for EmbeddingResponse
Source§impl Default for EmbeddingResponse
impl Default for EmbeddingResponse
Source§fn default() -> EmbeddingResponse
fn default() -> EmbeddingResponse
Returns the “default value” for a type. Read more
Source§impl From<EmbeddingResponse> for LlmResponseBody
impl From<EmbeddingResponse> for LlmResponseBody
Source§fn from(e: EmbeddingResponse) -> Self
fn from(e: EmbeddingResponse) -> Self
Converts to this type from the input type.
Source§impl PartialEq for EmbeddingResponse
impl PartialEq for EmbeddingResponse
Source§fn eq(&self, other: &EmbeddingResponse) -> bool
fn eq(&self, other: &EmbeddingResponse) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for EmbeddingResponse
Auto Trait Implementations§
impl Freeze for EmbeddingResponse
impl RefUnwindSafe for EmbeddingResponse
impl Send for EmbeddingResponse
impl Sync for EmbeddingResponse
impl Unpin for EmbeddingResponse
impl UnsafeUnpin for EmbeddingResponse
impl UnwindSafe for EmbeddingResponse
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