pub struct StreamMessageBuilder(/* private fields */);Expand description
Builder for StreamMessage.
Implementations§
Source§impl StreamMessageBuilder
impl StreamMessageBuilder
pub fn input_transformations( self, value: impl Into<Option<Vec<InputTransformation>>>, ) -> Self
pub fn container(self, value: impl Into<Option<ResponseContainer>>) -> Self
pub fn context_management( self, value: impl Into<Option<ContextManagementResponse>>, ) -> Self
pub fn diagnostics(self, value: impl Into<Option<DiagnosticsResponse>>) -> Self
pub fn stop_details(self, value: impl Into<Option<RefusalStopDetails>>) -> Self
pub fn stop_reason(self, value: impl Into<Option<StreamStopReason>>) -> Self
pub fn stop_sequence(self, value: impl Into<Option<String>>) -> Self
pub fn rest(self, value: Rest) -> Self
Sourcepub fn build(self) -> StreamMessage
pub fn build(self) -> StreamMessage
Return the completed wire value.
Auto Trait Implementations§
impl Freeze for StreamMessageBuilder
impl RefUnwindSafe for StreamMessageBuilder
impl Send for StreamMessageBuilder
impl Sync for StreamMessageBuilder
impl Unpin for StreamMessageBuilder
impl UnsafeUnpin for StreamMessageBuilder
impl UnwindSafe for StreamMessageBuilder
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