pub struct Choice {
pub index: i32,
pub message: Message,
pub logprobs: Option<Logprobs>,
pub finish_reason: String,
}
Fields§
§index: i32
§message: Message
§logprobs: Option<Logprobs>
§finish_reason: String
Trait Implementations§
source§impl<'de> Deserialize<'de> for Choice
impl<'de> Deserialize<'de> for Choice
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 Choice
impl RefUnwindSafe for Choice
impl Send for Choice
impl Sync for Choice
impl Unpin for Choice
impl UnwindSafe for Choice
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