Struct aws_sdk_bedrockruntime::operation::invoke_model_with_response_stream::InvokeModelWithResponseStreamOutput
source · #[non_exhaustive]pub struct InvokeModelWithResponseStreamOutput {
pub body: EventReceiver<ResponseStream, ResponseStreamError>,
pub content_type: String,
/* private fields */
}
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.body: EventReceiver<ResponseStream, ResponseStreamError>
Inference response from the model in the format specified by Content-Type. To see the format and content of this field for different models, refer to Inference parameters.
content_type: String
The MIME type of the inference result.
Implementations§
source§impl InvokeModelWithResponseStreamOutput
impl InvokeModelWithResponseStreamOutput
sourcepub fn body(&self) -> &EventReceiver<ResponseStream, ResponseStreamError>
pub fn body(&self) -> &EventReceiver<ResponseStream, ResponseStreamError>
Inference response from the model in the format specified by Content-Type. To see the format and content of this field for different models, refer to Inference parameters.
sourcepub fn content_type(&self) -> &str
pub fn content_type(&self) -> &str
The MIME type of the inference result.
source§impl InvokeModelWithResponseStreamOutput
impl InvokeModelWithResponseStreamOutput
sourcepub fn builder() -> InvokeModelWithResponseStreamOutputBuilder
pub fn builder() -> InvokeModelWithResponseStreamOutputBuilder
Creates a new builder-style object to manufacture InvokeModelWithResponseStreamOutput
.
Trait Implementations§
source§impl RequestId for InvokeModelWithResponseStreamOutput
impl RequestId for InvokeModelWithResponseStreamOutput
source§fn request_id(&self) -> Option<&str>
fn request_id(&self) -> Option<&str>
Returns the request ID, or
None
if the service could not be reached.Auto Trait Implementations§
impl !RefUnwindSafe for InvokeModelWithResponseStreamOutput
impl Send for InvokeModelWithResponseStreamOutput
impl Sync for InvokeModelWithResponseStreamOutput
impl Unpin for InvokeModelWithResponseStreamOutput
impl !UnwindSafe for InvokeModelWithResponseStreamOutput
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>
Creates a shared type from an unshared type.