#[non_exhaustive]pub struct Choice {
pub finish_reason: FinishReason,
pub index: i64,
pub logprobs: Option<Logprobs>,
pub message: ResponseMessage,
pub rest: Rest,
}Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.finish_reason: FinishReason§index: i64§logprobs: Option<Logprobs>§message: ResponseMessage§rest: RestImplementations§
Source§impl Choice
impl Choice
Sourcepub fn builder(
finish_reason: FinishReason,
index: i64,
logprobs: Option<Logprobs>,
message: ResponseMessage,
) -> ChoiceBuilder
pub fn builder( finish_reason: FinishReason, index: i64, logprobs: Option<Logprobs>, message: ResponseMessage, ) -> ChoiceBuilder
Start a builder by supplying the required fields in declaration order.
Trait Implementations§
Source§impl DeclaredFields for Choice
impl DeclaredFields for Choice
fn into_declared(self) -> Self
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
impl StructuralPartialEq for Choice
Auto Trait Implementations§
impl Freeze for Choice
impl RefUnwindSafe for Choice
impl Send for Choice
impl Sync for Choice
impl Unpin for Choice
impl UnsafeUnpin 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