pub struct ResponseFormatBuilder { /* private fields */ }
Expand description
Builder for ResponseFormat
.
Implementations§
Source§impl ResponseFormatBuilder
impl ResponseFormatBuilder
pub fn type_<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
Sourcepub fn build(&self) -> Result<ResponseFormat, ResponseFormatBuilderError>
pub fn build(&self) -> Result<ResponseFormat, ResponseFormatBuilderError>
Trait Implementations§
Source§impl Clone for ResponseFormatBuilder
impl Clone for ResponseFormatBuilder
Source§fn clone(&self) -> ResponseFormatBuilder
fn clone(&self) -> ResponseFormatBuilder
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl Freeze for ResponseFormatBuilder
impl RefUnwindSafe for ResponseFormatBuilder
impl Send for ResponseFormatBuilder
impl Sync for ResponseFormatBuilder
impl Unpin for ResponseFormatBuilder
impl UnwindSafe for ResponseFormatBuilder
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