#[non_exhaustive]pub struct StreamChoice {
pub index: i64,
pub delta: Delta,
pub logprobs: Option<Option<ChunkLogprobs>>,
pub finish_reason: Option<Option<FinishReason>>,
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.index: i64§delta: Delta§logprobs: Option<Option<ChunkLogprobs>>§finish_reason: Option<Option<FinishReason>>§rest: RestImplementations§
Source§impl StreamChoice
impl StreamChoice
Sourcepub fn builder(index: i64, delta: Delta) -> StreamChoiceBuilder
pub fn builder(index: i64, delta: Delta) -> StreamChoiceBuilder
Start a builder by supplying the required fields in declaration order.
Trait Implementations§
Source§impl Clone for StreamChoice
impl Clone for StreamChoice
Source§impl Debug for StreamChoice
impl Debug for StreamChoice
Source§impl DeclaredFields for StreamChoice
impl DeclaredFields for StreamChoice
fn into_declared(self) -> Self
Source§impl<'de> Deserialize<'de> for StreamChoice
impl<'de> Deserialize<'de> for StreamChoice
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 StreamChoice
impl PartialEq for StreamChoice
Source§impl Serialize for StreamChoice
impl Serialize for StreamChoice
impl StructuralPartialEq for StreamChoice
Auto Trait Implementations§
impl Freeze for StreamChoice
impl RefUnwindSafe for StreamChoice
impl Send for StreamChoice
impl Sync for StreamChoice
impl Unpin for StreamChoice
impl UnsafeUnpin for StreamChoice
impl UnwindSafe for StreamChoice
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