pub struct StreamChoiceBuilder(/* private fields */);Expand description
Builder for StreamChoice.
Implementations§
Source§impl StreamChoiceBuilder
impl StreamChoiceBuilder
pub fn logprobs(self, value: impl Into<Option<ChunkLogprobs>>) -> Self
pub fn finish_reason(self, value: impl Into<Option<FinishReason>>) -> Self
pub fn rest(self, value: Rest) -> Self
Sourcepub fn build(self) -> StreamChoice
pub fn build(self) -> StreamChoice
Return the completed wire value.
Auto Trait Implementations§
impl Freeze for StreamChoiceBuilder
impl RefUnwindSafe for StreamChoiceBuilder
impl Send for StreamChoiceBuilder
impl Sync for StreamChoiceBuilder
impl Unpin for StreamChoiceBuilder
impl UnsafeUnpin for StreamChoiceBuilder
impl UnwindSafe for StreamChoiceBuilder
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