#[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 get_evaluation_result(&self) -> &Option<String>
 
pub fn get_evaluation_result(&self) -> &Option<String>
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 get_error(&self) -> &Option<EvaluateCodeErrorDetail>
 
pub fn get_error(&self) -> &Option<EvaluateCodeErrorDetail>
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 get_logs(&self) -> &Option<Vec<String>>
 
pub fn get_logs(&self) -> &Option<Vec<String>>
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 for EvaluateCodeOutputBuilder
 
impl PartialEq 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 ==.impl StructuralPartialEq for EvaluateCodeOutputBuilder
Auto Trait Implementations§
impl Freeze for EvaluateCodeOutputBuilder
impl RefUnwindSafe for EvaluateCodeOutputBuilder
impl Send for EvaluateCodeOutputBuilder
impl Sync for EvaluateCodeOutputBuilder
impl Unpin for EvaluateCodeOutputBuilder
impl UnwindSafe for EvaluateCodeOutputBuilder
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.