#[non_exhaustive]pub struct ChatRenderOptions {
pub replay_reasoning_content: bool,
}Expand description
OpenAI Chat Completions render options.
Configuration, not context: see the module docs for what the serialized form promises and who decides support.
Default replays sealed reasoning_content.
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.replay_reasoning_content: boolReplay the frame’s own-format sealed reasoning_content message-level
items (default true). DeepSeek requires reasoning_content back on
every request that carries tools and ignores it otherwise; other
compatible providers differ, which is what this option is for. When it
is off, the renderer removes the reasoning_content key from its own
sealed items — dropping an item that carries nothing else — and changes
nothing else. Other sealed message fields still replay.
Trait Implementations§
Source§impl Clone for ChatRenderOptions
impl Clone for ChatRenderOptions
impl Copy for ChatRenderOptions
Source§impl Debug for ChatRenderOptions
impl Debug for ChatRenderOptions
Source§impl Default for ChatRenderOptions
impl Default for ChatRenderOptions
Source§impl<'de> Deserialize<'de> for ChatRenderOptionswhere
ChatRenderOptions: Default,
impl<'de> Deserialize<'de> for ChatRenderOptionswhere
ChatRenderOptions: Default,
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
impl Eq for ChatRenderOptions
Source§impl PartialEq for ChatRenderOptions
impl PartialEq for ChatRenderOptions
Source§impl Serialize for ChatRenderOptions
impl Serialize for ChatRenderOptions
impl StructuralPartialEq for ChatRenderOptions
Auto Trait Implementations§
impl Freeze for ChatRenderOptions
impl RefUnwindSafe for ChatRenderOptions
impl Send for ChatRenderOptions
impl Sync for ChatRenderOptions
impl Unpin for ChatRenderOptions
impl UnsafeUnpin for ChatRenderOptions
impl UnwindSafe for ChatRenderOptions
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