pub struct LLMCompletionResponse {
pub model: String,
pub object: String,
pub choices: Vec<LLMChoice>,
pub created: u64,
pub usage: Option<LLMTokenUsage>,
pub id: String,
}Fields§
§model: String§object: String§choices: Vec<LLMChoice>§created: u64§usage: Option<LLMTokenUsage>§id: StringTrait Implementations§
Source§impl Clone for LLMCompletionResponse
impl Clone for LLMCompletionResponse
Source§fn clone(&self) -> LLMCompletionResponse
fn clone(&self) -> LLMCompletionResponse
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 LLMCompletionResponse
impl Debug for LLMCompletionResponse
Source§impl<'de> Deserialize<'de> for LLMCompletionResponse
impl<'de> Deserialize<'de> for LLMCompletionResponse
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
Auto Trait Implementations§
impl Freeze for LLMCompletionResponse
impl RefUnwindSafe for LLMCompletionResponse
impl Send for LLMCompletionResponse
impl Sync for LLMCompletionResponse
impl Unpin for LLMCompletionResponse
impl UnwindSafe for LLMCompletionResponse
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