#[non_exhaustive]pub enum Rewrite {
Stream(bool),
NoStream,
StreamUsage,
}Expand description
The writes request_params makes after the merge, each one a write a
wire made after merging additional_params before. Each reads the merged
body, raw keys included. A third-party wire uses the stream ones; the
provider-specific ones are rig’s own and hidden.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Stream(bool)
stream set to this value.
NoStream
stream removed.
StreamUsage
Chat Completions streams: stream_options.include_usage: true
unless the body states it.
Trait Implementations§
impl StructuralPartialEq for Rewrite
Auto Trait Implementations§
impl Freeze for Rewrite
impl RefUnwindSafe for Rewrite
impl Send for Rewrite
impl Sync for Rewrite
impl Unpin for Rewrite
impl UnsafeUnpin for Rewrite
impl UnwindSafe for Rewrite
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