pub struct SampleChoice {
pub index: i32,
pub text: String,
pub finish_reason: String,
}Expand description
A choice in a sample response.
Fields§
§index: i32Index of the choice.
text: StringText response.
finish_reason: StringFinish reason.
Trait Implementations§
Source§impl Clone for SampleChoice
impl Clone for SampleChoice
Source§fn clone(&self) -> SampleChoice
fn clone(&self) -> SampleChoice
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 SampleChoice
impl Debug for SampleChoice
Source§impl Default for SampleChoice
impl Default for SampleChoice
Source§fn default() -> SampleChoice
fn default() -> SampleChoice
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for SampleChoice
impl<'de> Deserialize<'de> for SampleChoice
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 SampleChoice
impl PartialEq for SampleChoice
Source§impl Serialize for SampleChoice
impl Serialize for SampleChoice
impl StructuralPartialEq for SampleChoice
Auto Trait Implementations§
impl Freeze for SampleChoice
impl RefUnwindSafe for SampleChoice
impl Send for SampleChoice
impl Sync for SampleChoice
impl Unpin for SampleChoice
impl UnwindSafe for SampleChoice
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