Struct aws_sdk_bedrockruntime::operation::invoke_model_with_response_stream::InvokeModelWithResponseStreamInput
source · #[non_exhaustive]pub struct InvokeModelWithResponseStreamInput {
pub body: Option<Blob>,
pub content_type: Option<String>,
pub accept: Option<String>,
pub model_id: Option<String>,
}
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: Option<Blob>
Inference input in the format specified by the content-type. To see the format and content of this field for different models, refer to Inference parameters.
content_type: Option<String>
The MIME type of the input data in the request. The default value is application/json
.
accept: Option<String>
The desired MIME type of the inference body in the response. The default value is application/json
.
model_id: Option<String>
Id of the model to invoke using the streaming request.
Implementations§
source§impl InvokeModelWithResponseStreamInput
impl InvokeModelWithResponseStreamInput
sourcepub fn body(&self) -> Option<&Blob>
pub fn body(&self) -> Option<&Blob>
Inference input in the format specified by the content-type. To see the format and content of this field for different models, refer to Inference parameters.
sourcepub fn content_type(&self) -> Option<&str>
pub fn content_type(&self) -> Option<&str>
The MIME type of the input data in the request. The default value is application/json
.
source§impl InvokeModelWithResponseStreamInput
impl InvokeModelWithResponseStreamInput
sourcepub fn builder() -> InvokeModelWithResponseStreamInputBuilder
pub fn builder() -> InvokeModelWithResponseStreamInputBuilder
Creates a new builder-style object to manufacture InvokeModelWithResponseStreamInput
.
Trait Implementations§
source§impl Clone for InvokeModelWithResponseStreamInput
impl Clone for InvokeModelWithResponseStreamInput
source§fn clone(&self) -> InvokeModelWithResponseStreamInput
fn clone(&self) -> InvokeModelWithResponseStreamInput
Returns a copy 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 moresource§impl PartialEq for InvokeModelWithResponseStreamInput
impl PartialEq for InvokeModelWithResponseStreamInput
source§fn eq(&self, other: &InvokeModelWithResponseStreamInput) -> bool
fn eq(&self, other: &InvokeModelWithResponseStreamInput) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for InvokeModelWithResponseStreamInput
Auto Trait Implementations§
impl RefUnwindSafe for InvokeModelWithResponseStreamInput
impl Send for InvokeModelWithResponseStreamInput
impl Sync for InvokeModelWithResponseStreamInput
impl Unpin for InvokeModelWithResponseStreamInput
impl UnwindSafe for InvokeModelWithResponseStreamInput
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.