#[non_exhaustive]pub struct TestRoleOutputBuilder { /* private fields */ }
Expand description
A builder for TestRoleOutput
.
Implementations§
source§impl TestRoleOutputBuilder
impl TestRoleOutputBuilder
sourcepub fn success(self, input: impl Into<String>) -> Self
pub fn success(self, input: impl Into<String>) -> Self
If the operation is successful, this value is true
; otherwise, the value is false
.
sourcepub fn set_success(self, input: Option<String>) -> Self
pub fn set_success(self, input: Option<String>) -> Self
If the operation is successful, this value is true
; otherwise, the value is false
.
sourcepub fn messages(self, input: impl Into<String>) -> Self
pub fn messages(self, input: impl Into<String>) -> Self
Appends an item to messages
.
To override the contents of this collection use set_messages
.
If the Success
element contains false
, this value is an array of one or more error messages that were generated during the test process.
sourcepub fn set_messages(self, input: Option<Vec<String>>) -> Self
pub fn set_messages(self, input: Option<Vec<String>>) -> Self
If the Success
element contains false
, this value is an array of one or more error messages that were generated during the test process.
sourcepub fn build(self) -> TestRoleOutput
pub fn build(self) -> TestRoleOutput
Consumes the builder and constructs a TestRoleOutput
.
Trait Implementations§
source§impl Clone for TestRoleOutputBuilder
impl Clone for TestRoleOutputBuilder
source§fn clone(&self) -> TestRoleOutputBuilder
fn clone(&self) -> TestRoleOutputBuilder
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 TestRoleOutputBuilder
impl Debug for TestRoleOutputBuilder
source§impl Default for TestRoleOutputBuilder
impl Default for TestRoleOutputBuilder
source§fn default() -> TestRoleOutputBuilder
fn default() -> TestRoleOutputBuilder
Returns the “default value” for a type. Read more
source§impl PartialEq<TestRoleOutputBuilder> for TestRoleOutputBuilder
impl PartialEq<TestRoleOutputBuilder> for TestRoleOutputBuilder
source§fn eq(&self, other: &TestRoleOutputBuilder) -> bool
fn eq(&self, other: &TestRoleOutputBuilder) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.