#[non_exhaustive]pub struct EvaluateCodeOutputBuilder { /* private fields */ }
Expand description
A builder for EvaluateCodeOutput
.
Implementations§
source§impl EvaluateCodeOutputBuilder
impl EvaluateCodeOutputBuilder
sourcepub fn evaluation_result(self, input: impl Into<String>) -> Self
pub fn evaluation_result(self, input: impl Into<String>) -> Self
The result of the evaluation operation.
sourcepub fn set_evaluation_result(self, input: Option<String>) -> Self
pub fn set_evaluation_result(self, input: Option<String>) -> Self
The result of the evaluation operation.
sourcepub fn error(self, input: EvaluateCodeErrorDetail) -> Self
pub fn error(self, input: EvaluateCodeErrorDetail) -> Self
Contains the payload of the response error.
sourcepub fn set_error(self, input: Option<EvaluateCodeErrorDetail>) -> Self
pub fn set_error(self, input: Option<EvaluateCodeErrorDetail>) -> Self
Contains the payload of the response error.
sourcepub fn logs(self, input: impl Into<String>) -> Self
pub fn logs(self, input: impl Into<String>) -> Self
Appends an item to logs
.
To override the contents of this collection use set_logs
.
A list of logs that were generated by calls to util.log.info
and util.log.error
in the evaluated code.
sourcepub fn set_logs(self, input: Option<Vec<String>>) -> Self
pub fn set_logs(self, input: Option<Vec<String>>) -> Self
A list of logs that were generated by calls to util.log.info
and util.log.error
in the evaluated code.
sourcepub fn build(self) -> EvaluateCodeOutput
pub fn build(self) -> EvaluateCodeOutput
Consumes the builder and constructs a EvaluateCodeOutput
.
Trait Implementations§
source§impl Clone for EvaluateCodeOutputBuilder
impl Clone for EvaluateCodeOutputBuilder
source§fn clone(&self) -> EvaluateCodeOutputBuilder
fn clone(&self) -> EvaluateCodeOutputBuilder
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 Debug for EvaluateCodeOutputBuilder
impl Debug for EvaluateCodeOutputBuilder
source§impl Default for EvaluateCodeOutputBuilder
impl Default for EvaluateCodeOutputBuilder
source§fn default() -> EvaluateCodeOutputBuilder
fn default() -> EvaluateCodeOutputBuilder
Returns the “default value” for a type. Read more
source§impl PartialEq<EvaluateCodeOutputBuilder> for EvaluateCodeOutputBuilder
impl PartialEq<EvaluateCodeOutputBuilder> for EvaluateCodeOutputBuilder
source§fn eq(&self, other: &EvaluateCodeOutputBuilder) -> bool
fn eq(&self, other: &EvaluateCodeOutputBuilder) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.