#[non_exhaustive]pub struct StreamOptions {
pub include_obfuscation: Option<bool>,
}Expand description
EN: Options for streaming Responses API requests. 中文:Responses API 流式请求的选项。
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.include_obfuscation: Option<bool>EN: Whether to include obfuscation padding fields in streaming delta events. 中文:是否在流式增量事件中包含混淆填充字段。
Implementations§
Source§impl StreamOptions
impl StreamOptions
Sourcepub fn builder() -> StreamOptionsBuilder
pub fn builder() -> StreamOptionsBuilder
EN: Starts building stream options. 中文:开始构建流选项。
Trait Implementations§
Source§impl Clone for StreamOptions
impl Clone for StreamOptions
Source§fn clone(&self) -> StreamOptions
fn clone(&self) -> StreamOptions
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 StreamOptions
impl Debug for StreamOptions
Source§impl Default for StreamOptions
impl Default for StreamOptions
Source§fn default() -> StreamOptions
fn default() -> StreamOptions
Returns the “default value” for a type. Read more
impl Eq for StreamOptions
Source§impl PartialEq for StreamOptions
impl PartialEq for StreamOptions
Source§fn eq(&self, other: &StreamOptions) -> bool
fn eq(&self, other: &StreamOptions) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for StreamOptions
impl Serialize for StreamOptions
impl StructuralPartialEq for StreamOptions
Auto Trait Implementations§
impl Freeze for StreamOptions
impl RefUnwindSafe for StreamOptions
impl Send for StreamOptions
impl Sync for StreamOptions
impl Unpin for StreamOptions
impl UnsafeUnpin for StreamOptions
impl UnwindSafe for StreamOptions
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.