pub struct AuthenticatedInfoBuilder { /* private fields */ }Expand description
Builder for AuthenticatedInfo.
Implementations§
Source§impl AuthenticatedInfoBuilder
impl AuthenticatedInfoBuilder
Sourcepub fn application_credential<VALUE: Into<ApplicationCredential>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn application_credential<VALUE: Into<ApplicationCredential>>( &mut self, value: VALUE, ) -> &mut Self
Application credential.
Sourcepub fn expires_at<VALUE: Into<DateTime<Utc>>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn expires_at<VALUE: Into<DateTime<Utc>>>( &mut self, value: VALUE, ) -> &mut Self
Authentication expiration.
Sourcepub fn methods<VALUE: Into<Vec<String>>>(&mut self, value: VALUE) -> &mut Self
pub fn methods<VALUE: Into<Vec<String>>>(&mut self, value: VALUE) -> &mut Self
Authentication methods.
Sourcepub fn protocol_id<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
pub fn protocol_id<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
Federated protocol id.
Sourcepub fn token_restriction_id<VALUE: Into<String>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn token_restriction_id<VALUE: Into<String>>( &mut self, value: VALUE, ) -> &mut Self
Token restriction.
Sourcepub fn user<VALUE: Into<UserResponse>>(&mut self, value: VALUE) -> &mut Self
pub fn user<VALUE: Into<UserResponse>>(&mut self, value: VALUE) -> &mut Self
Resolved user object.
Sourcepub fn user_domain<VALUE: Into<Domain>>(&mut self, value: VALUE) -> &mut Self
pub fn user_domain<VALUE: Into<Domain>>(&mut self, value: VALUE) -> &mut Self
Resolved user domain information.
Sourcepub fn user_groups<VALUE: Into<Vec<Group>>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn user_groups<VALUE: Into<Vec<Group>>>( &mut self, value: VALUE, ) -> &mut Self
Resolved user object.
Sourcepub fn build(&self) -> Result<AuthenticatedInfo, BuilderError>
pub fn build(&self) -> Result<AuthenticatedInfo, BuilderError>
Trait Implementations§
Source§impl Clone for AuthenticatedInfoBuilder
impl Clone for AuthenticatedInfoBuilder
Source§fn clone(&self) -> AuthenticatedInfoBuilder
fn clone(&self) -> AuthenticatedInfoBuilder
Returns a duplicate 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 moreAuto Trait Implementations§
impl Freeze for AuthenticatedInfoBuilder
impl RefUnwindSafe for AuthenticatedInfoBuilder
impl Send for AuthenticatedInfoBuilder
impl Sync for AuthenticatedInfoBuilder
impl Unpin for AuthenticatedInfoBuilder
impl UnsafeUnpin for AuthenticatedInfoBuilder
impl UnwindSafe for AuthenticatedInfoBuilder
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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 more