#[non_exhaustive]pub struct InvokeModelOutputBuilder { /* private fields */ }
Expand description
A builder for InvokeModelOutput
.
Implementations§
source§impl InvokeModelOutputBuilder
impl InvokeModelOutputBuilder
sourcepub fn body(self, input: Blob) -> Self
pub fn body(self, input: Blob) -> Self
Inference response from the model in the format specified in the content-type header field. To see the format and content of this field for different models, refer to Inference parameters.
This field is required.sourcepub fn set_body(self, input: Option<Blob>) -> Self
pub fn set_body(self, input: Option<Blob>) -> Self
Inference response from the model in the format specified in the content-type header field. To see the format and content of this field for different models, refer to Inference parameters.
sourcepub fn get_body(&self) -> &Option<Blob>
pub fn get_body(&self) -> &Option<Blob>
Inference response from the model in the format specified in the content-type header field. To see the format and content of this field for different models, refer to Inference parameters.
sourcepub fn content_type(self, input: impl Into<String>) -> Self
pub fn content_type(self, input: impl Into<String>) -> Self
The MIME type of the inference result.
This field is required.sourcepub fn set_content_type(self, input: Option<String>) -> Self
pub fn set_content_type(self, input: Option<String>) -> Self
The MIME type of the inference result.
sourcepub fn get_content_type(&self) -> &Option<String>
pub fn get_content_type(&self) -> &Option<String>
The MIME type of the inference result.
sourcepub fn build(self) -> Result<InvokeModelOutput, BuildError>
pub fn build(self) -> Result<InvokeModelOutput, BuildError>
Consumes the builder and constructs a InvokeModelOutput
.
This method will fail if any of the following fields are not set:
Trait Implementations§
source§impl Clone for InvokeModelOutputBuilder
impl Clone for InvokeModelOutputBuilder
source§fn clone(&self) -> InvokeModelOutputBuilder
fn clone(&self) -> InvokeModelOutputBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for InvokeModelOutputBuilder
impl Debug for InvokeModelOutputBuilder
source§impl Default for InvokeModelOutputBuilder
impl Default for InvokeModelOutputBuilder
source§fn default() -> InvokeModelOutputBuilder
fn default() -> InvokeModelOutputBuilder
source§impl PartialEq for InvokeModelOutputBuilder
impl PartialEq for InvokeModelOutputBuilder
source§fn eq(&self, other: &InvokeModelOutputBuilder) -> bool
fn eq(&self, other: &InvokeModelOutputBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.