pub struct CompletionsResponse {
pub id: String,
pub choices: Vec<Choice>,
pub created: u64,
pub model: String,
pub object_type: ObjectType,
pub provider: Option<String>,
pub system_fingerprint: Option<String>,
pub usage: Option<ResponseUsage>,
}
Fields§
§id: String
§choices: Vec<Choice>
§created: u64
§model: String
§object_type: ObjectType
§provider: Option<String>
§system_fingerprint: Option<String>
§usage: Option<ResponseUsage>
Trait Implementations§
Source§impl Clone for CompletionsResponse
impl Clone for CompletionsResponse
Source§fn clone(&self) -> CompletionsResponse
fn clone(&self) -> CompletionsResponse
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 CompletionsResponse
impl Debug for CompletionsResponse
Source§impl<'de> Deserialize<'de> for CompletionsResponse
impl<'de> Deserialize<'de> for CompletionsResponse
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 CompletionsResponse
impl RefUnwindSafe for CompletionsResponse
impl Send for CompletionsResponse
impl Sync for CompletionsResponse
impl Unpin for CompletionsResponse
impl UnwindSafe for CompletionsResponse
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