pub struct OpenAiCodecOptions {
pub model: String,
pub stream: bool,
pub tools: bool,
}Expand description
Options for OpenAI-compatible provider request JSON generation.
Fields§
§model: StringModel identifier to place in the generated request.
stream: boolWhether to request a streamed (SSE) response.
tools: boolWhether to include the tools field in the generated request.
Implementations§
Trait Implementations§
Source§impl Clone for OpenAiCodecOptions
impl Clone for OpenAiCodecOptions
Source§fn clone(&self) -> OpenAiCodecOptions
fn clone(&self) -> OpenAiCodecOptions
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 OpenAiCodecOptions
impl Debug for OpenAiCodecOptions
impl Eq for OpenAiCodecOptions
Source§impl PartialEq for OpenAiCodecOptions
impl PartialEq for OpenAiCodecOptions
Source§fn eq(&self, other: &OpenAiCodecOptions) -> bool
fn eq(&self, other: &OpenAiCodecOptions) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for OpenAiCodecOptions
Auto Trait Implementations§
impl Freeze for OpenAiCodecOptions
impl RefUnwindSafe for OpenAiCodecOptions
impl Send for OpenAiCodecOptions
impl Sync for OpenAiCodecOptions
impl Unpin for OpenAiCodecOptions
impl UnsafeUnpin for OpenAiCodecOptions
impl UnwindSafe for OpenAiCodecOptions
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