#[non_exhaustive]pub struct ResponseTextConfig {
pub format: Option<ResponseTextFormat>,
pub verbosity: Option<ResponseTextVerbosity>,
}Expand description
EN: Text output configuration. 中文:文本输出配置。
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.format: Option<ResponseTextFormat>EN: Optional text format configuration. 中文:可选的文本格式配置。
verbosity: Option<ResponseTextVerbosity>EN: Optional output verbosity. 中文:可选的输出详细程度。
Implementations§
Source§impl ResponseTextConfig
impl ResponseTextConfig
Sourcepub fn format(self, format: impl Into<ResponseTextFormat>) -> Self
pub fn format(self, format: impl Into<ResponseTextFormat>) -> Self
EN: Sets the text output format. 中文:设置文本输出格式。
Sourcepub fn verbosity(self, verbosity: ResponseTextVerbosity) -> Self
pub fn verbosity(self, verbosity: ResponseTextVerbosity) -> Self
EN: Sets the text output verbosity. 中文:设置文本输出详细程度。
Trait Implementations§
Source§impl Clone for ResponseTextConfig
impl Clone for ResponseTextConfig
Source§fn clone(&self) -> ResponseTextConfig
fn clone(&self) -> ResponseTextConfig
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 ResponseTextConfig
impl Debug for ResponseTextConfig
Source§impl Default for ResponseTextConfig
impl Default for ResponseTextConfig
Source§fn default() -> ResponseTextConfig
fn default() -> ResponseTextConfig
Returns the “default value” for a type. Read more
Source§impl PartialEq for ResponseTextConfig
impl PartialEq for ResponseTextConfig
Source§fn eq(&self, other: &ResponseTextConfig) -> bool
fn eq(&self, other: &ResponseTextConfig) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for ResponseTextConfig
impl Serialize for ResponseTextConfig
impl StructuralPartialEq for ResponseTextConfig
Auto Trait Implementations§
impl Freeze for ResponseTextConfig
impl RefUnwindSafe for ResponseTextConfig
impl Send for ResponseTextConfig
impl Sync for ResponseTextConfig
impl Unpin for ResponseTextConfig
impl UnsafeUnpin for ResponseTextConfig
impl UnwindSafe for ResponseTextConfig
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