pub struct RealtimeResponseBuilder(/* private fields */);Expand description
Builder for RealtimeResponse.
Implementations§
Source§impl RealtimeResponseBuilder
impl RealtimeResponseBuilder
pub fn id(self, value: impl Into<Option<String>>) -> Self
pub fn audio(self, value: impl Into<Option<RealtimeResponseAudio>>) -> Self
pub fn conversation_id(self, value: impl Into<Option<String>>) -> Self
pub fn max_output_tokens( self, value: impl Into<Option<RealtimeResponseMaxOutputTokens>>, ) -> Self
pub fn metadata(self, value: impl Into<Option<Metadata>>) -> Self
pub fn object(self, value: impl Into<Option<RealtimeResponseObject>>) -> Self
pub fn output(self, value: impl Into<Option<Vec<ConversationItem>>>) -> Self
pub fn output_modalities( self, value: impl Into<Option<Vec<RealtimeResponseOutputModalitiesItem>>>, ) -> Self
pub fn status( self, value: impl Into<Option<RealtimeResponseStatusValue>>, ) -> Self
pub fn status_details( self, value: impl Into<Option<RealtimeResponseStatus>>, ) -> Self
pub fn usage(self, value: impl Into<Option<RealtimeResponseUsage>>) -> Self
pub fn rest(self, value: Rest) -> Self
Sourcepub fn build(self) -> RealtimeResponse
pub fn build(self) -> RealtimeResponse
Return the completed wire value.
Auto Trait Implementations§
impl Freeze for RealtimeResponseBuilder
impl RefUnwindSafe for RealtimeResponseBuilder
impl Send for RealtimeResponseBuilder
impl Sync for RealtimeResponseBuilder
impl Unpin for RealtimeResponseBuilder
impl UnsafeUnpin for RealtimeResponseBuilder
impl UnwindSafe for RealtimeResponseBuilder
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