#[non_exhaustive]pub struct TestAuthorizationOutputBuilder { /* private fields */ }
Expand description
A builder for TestAuthorizationOutput
.
Implementations§
source§impl TestAuthorizationOutputBuilder
impl TestAuthorizationOutputBuilder
sourcepub fn auth_results(self, input: AuthResult) -> Self
pub fn auth_results(self, input: AuthResult) -> Self
Appends an item to auth_results
.
To override the contents of this collection use set_auth_results
.
The authentication results.
sourcepub fn set_auth_results(self, input: Option<Vec<AuthResult>>) -> Self
pub fn set_auth_results(self, input: Option<Vec<AuthResult>>) -> Self
The authentication results.
sourcepub fn get_auth_results(&self) -> &Option<Vec<AuthResult>>
pub fn get_auth_results(&self) -> &Option<Vec<AuthResult>>
The authentication results.
sourcepub fn build(self) -> TestAuthorizationOutput
pub fn build(self) -> TestAuthorizationOutput
Consumes the builder and constructs a TestAuthorizationOutput
.
Trait Implementations§
source§impl Clone for TestAuthorizationOutputBuilder
impl Clone for TestAuthorizationOutputBuilder
source§fn clone(&self) -> TestAuthorizationOutputBuilder
fn clone(&self) -> TestAuthorizationOutputBuilder
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 Default for TestAuthorizationOutputBuilder
impl Default for TestAuthorizationOutputBuilder
source§fn default() -> TestAuthorizationOutputBuilder
fn default() -> TestAuthorizationOutputBuilder
Returns the “default value” for a type. Read more
source§impl PartialEq for TestAuthorizationOutputBuilder
impl PartialEq for TestAuthorizationOutputBuilder
source§fn eq(&self, other: &TestAuthorizationOutputBuilder) -> bool
fn eq(&self, other: &TestAuthorizationOutputBuilder) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for TestAuthorizationOutputBuilder
Auto Trait Implementations§
impl Freeze for TestAuthorizationOutputBuilder
impl RefUnwindSafe for TestAuthorizationOutputBuilder
impl Send for TestAuthorizationOutputBuilder
impl Sync for TestAuthorizationOutputBuilder
impl Unpin for TestAuthorizationOutputBuilder
impl UnwindSafe for TestAuthorizationOutputBuilder
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.