#[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 get_success(&self) -> &Option<String>
pub fn get_success(&self) -> &Option<String>
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 get_messages(&self) -> &Option<Vec<String>>
pub fn get_messages(&self) -> &Option<Vec<String>>
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
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
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
source§impl PartialEq for TestRoleOutputBuilder
impl PartialEq for TestRoleOutputBuilder
impl StructuralPartialEq for TestRoleOutputBuilder
Auto Trait Implementations§
impl Freeze for TestRoleOutputBuilder
impl RefUnwindSafe for TestRoleOutputBuilder
impl Send for TestRoleOutputBuilder
impl Sync for TestRoleOutputBuilder
impl Unpin for TestRoleOutputBuilder
impl UnwindSafe for TestRoleOutputBuilder
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)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>
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>
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 more