pub struct MessageChoice {
pub message: ChatMessage,
pub finish_reason: String,
pub index: u32,
}Expand description
A message completion choice struct
Fields§
§message: ChatMessageThe actual message
finish_reason: StringThe reason completion was stopped
index: u32The index of this message in the outer message_choices array
Trait Implementations§
Source§impl Clone for MessageChoice
impl Clone for MessageChoice
Source§fn clone(&self) -> MessageChoice
fn clone(&self) -> MessageChoice
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 MessageChoice
impl Debug for MessageChoice
Source§impl<'de> Deserialize<'de> for MessageChoice
impl<'de> Deserialize<'de> for MessageChoice
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 MessageChoice
impl PartialEq for MessageChoice
Source§impl PartialOrd for MessageChoice
impl PartialOrd for MessageChoice
impl StructuralPartialEq for MessageChoice
Auto Trait Implementations§
impl Freeze for MessageChoice
impl RefUnwindSafe for MessageChoice
impl Send for MessageChoice
impl Sync for MessageChoice
impl Unpin for MessageChoice
impl UnwindSafe for MessageChoice
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