pub struct ResponseFormatConfigBuilder(/* private fields */);Expand description
Builder for ResponseFormatConfig.
Implementations§
Source§impl ResponseFormatConfigBuilder
impl ResponseFormatConfigBuilder
pub fn text(self, value: impl Into<TextResponseFormat>) -> Self
pub fn audio(self, value: impl Into<AudioResponseFormat>) -> Self
pub fn image(self, value: impl Into<ImageResponseFormat>) -> Self
pub fn rest(self, value: Rest) -> Self
Sourcepub fn build(self) -> ResponseFormatConfig
pub fn build(self) -> ResponseFormatConfig
Return the completed wire value.
Auto Trait Implementations§
impl Freeze for ResponseFormatConfigBuilder
impl RefUnwindSafe for ResponseFormatConfigBuilder
impl Send for ResponseFormatConfigBuilder
impl Sync for ResponseFormatConfigBuilder
impl Unpin for ResponseFormatConfigBuilder
impl UnsafeUnpin for ResponseFormatConfigBuilder
impl UnwindSafe for ResponseFormatConfigBuilder
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