pub struct CreateCompletionResponse {
pub id: String,
pub choices: Vec<Choice>,
pub created: u32,
pub model: String,
pub system_fingerprint: Option<String>,
pub object: String,
pub usage: Option<CompletionUsage>,
}
Fields§
§id: String
A unique identifier for the completion.
choices: Vec<Choice>
§created: u32
The Unix timestamp (in seconds) of when the completion was created.
model: String
The model used for completion.
system_fingerprint: Option<String>
This fingerprint represents the backend configuration that the model runs with.
Can be used in conjunction with the seed
request parameter to understand when backend changes have been
made that might impact determinism.
object: String
The object type, which is always “text_completion”
usage: Option<CompletionUsage>
Trait Implementations§
Source§impl Clone for CreateCompletionResponse
impl Clone for CreateCompletionResponse
Source§fn clone(&self) -> CreateCompletionResponse
fn clone(&self) -> CreateCompletionResponse
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 moreSource§impl Debug for CreateCompletionResponse
impl Debug for CreateCompletionResponse
Source§impl<'de> Deserialize<'de> for CreateCompletionResponse
impl<'de> Deserialize<'de> for CreateCompletionResponse
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
Source§impl PartialEq for CreateCompletionResponse
impl PartialEq for CreateCompletionResponse
Source§impl Serialize for CreateCompletionResponse
impl Serialize for CreateCompletionResponse
impl StructuralPartialEq for CreateCompletionResponse
Auto Trait Implementations§
impl Freeze for CreateCompletionResponse
impl RefUnwindSafe for CreateCompletionResponse
impl Send for CreateCompletionResponse
impl Sync for CreateCompletionResponse
impl Unpin for CreateCompletionResponse
impl UnwindSafe for CreateCompletionResponse
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