Struct aws_sdk_qbusiness::operation::chat::builders::ChatOutputBuilder
source · #[non_exhaustive]pub struct ChatOutputBuilder { /* private fields */ }
Expand description
A builder for ChatOutput
.
Implementations§
source§impl ChatOutputBuilder
impl ChatOutputBuilder
sourcepub fn output_stream(
self,
input: EventReceiver<ChatOutputStream, ChatOutputStreamError>,
) -> Self
pub fn output_stream( self, input: EventReceiver<ChatOutputStream, ChatOutputStreamError>, ) -> Self
The streaming output for the Chat
API.
sourcepub fn set_output_stream(
self,
input: Option<EventReceiver<ChatOutputStream, ChatOutputStreamError>>,
) -> Self
pub fn set_output_stream( self, input: Option<EventReceiver<ChatOutputStream, ChatOutputStreamError>>, ) -> Self
The streaming output for the Chat
API.
sourcepub fn get_output_stream(
&self,
) -> &Option<EventReceiver<ChatOutputStream, ChatOutputStreamError>>
pub fn get_output_stream( &self, ) -> &Option<EventReceiver<ChatOutputStream, ChatOutputStreamError>>
The streaming output for the Chat
API.
sourcepub fn build(self) -> Result<ChatOutput, BuildError>
pub fn build(self) -> Result<ChatOutput, BuildError>
Consumes the builder and constructs a ChatOutput
.
This method will fail if any of the following fields are not set:
Trait Implementations§
source§impl Debug for ChatOutputBuilder
impl Debug for ChatOutputBuilder
source§impl Default for ChatOutputBuilder
impl Default for ChatOutputBuilder
source§fn default() -> ChatOutputBuilder
fn default() -> ChatOutputBuilder
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl !Freeze for ChatOutputBuilder
impl !RefUnwindSafe for ChatOutputBuilder
impl Send for ChatOutputBuilder
impl Sync for ChatOutputBuilder
impl Unpin for ChatOutputBuilder
impl !UnwindSafe for ChatOutputBuilder
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
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreCreates a shared type from an unshared type.