pub struct TextCompletionChoice {
pub text: String,
pub index: i32,
pub logprobs: Option<TextCompletionLogprobs>,
pub finish_reason: Option<String>,
}
Fields§
§text: String
§index: i32
§logprobs: Option<TextCompletionLogprobs>
§finish_reason: Option<String>
Trait Implementations§
Source§impl Debug for TextCompletionChoice
impl Debug for TextCompletionChoice
Source§impl<'de> Deserialize<'de> for TextCompletionChoice
impl<'de> Deserialize<'de> for TextCompletionChoice
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 TextCompletionChoice
impl RefUnwindSafe for TextCompletionChoice
impl Send for TextCompletionChoice
impl Sync for TextCompletionChoice
impl Unpin for TextCompletionChoice
impl UnwindSafe for TextCompletionChoice
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