pub enum LlmResponseBody {
Completion(Completion),
Embedding(EmbeddingResponse),
}Expand description
Either a Completion or an EmbeddingResponse, accepted by
responding_with builder methods.
Variants§
Completion(Completion)
Embedding(EmbeddingResponse)
Trait Implementations§
Source§impl Clone for LlmResponseBody
impl Clone for LlmResponseBody
Source§fn clone(&self) -> LlmResponseBody
fn clone(&self) -> LlmResponseBody
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 LlmResponseBody
impl Debug for LlmResponseBody
Source§impl From<Completion> for LlmResponseBody
impl From<Completion> for LlmResponseBody
Source§fn from(c: Completion) -> Self
fn from(c: Completion) -> Self
Converts to this type from the input type.
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 LlmResponseBody
impl PartialEq for LlmResponseBody
Source§fn eq(&self, other: &LlmResponseBody) -> bool
fn eq(&self, other: &LlmResponseBody) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for LlmResponseBody
Auto Trait Implementations§
impl Freeze for LlmResponseBody
impl RefUnwindSafe for LlmResponseBody
impl Send for LlmResponseBody
impl Sync for LlmResponseBody
impl Unpin for LlmResponseBody
impl UnsafeUnpin for LlmResponseBody
impl UnwindSafe for LlmResponseBody
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