pub struct AuthBuilder<'a, S: State = Empty> { /* private fields */ }
Available on crate feature
auth
only.Expand description
Use builder syntax to set the inputs and finish with build()
.
Implementations§
Source§impl<'a, S: State> AuthBuilder<'a, S>
impl<'a, S: State> AuthBuilder<'a, S>
Sourcepub fn build(self) -> Auth<'a>where
S: IsComplete,
pub fn build(self) -> Auth<'a>where
S: IsComplete,
Finish building and return the requested object
Sourcepub fn otp(self, value: impl Into<Otp<'a>>) -> AuthBuilder<'a, SetOtp<S>>where
S::Otp: IsUnset,
pub fn otp(self, value: impl Into<Otp<'a>>) -> AuthBuilder<'a, SetOtp<S>>where
S::Otp: IsUnset,
Required.
The OTP configuration.
Sourcepub fn label(self, value: Label<'a>) -> AuthBuilder<'a, SetLabel<S>>where
S::Label: IsUnset,
pub fn label(self, value: Label<'a>) -> AuthBuilder<'a, SetLabel<S>>where
S::Label: IsUnset,
Required.
The authentication label.
Auto Trait Implementations§
impl<'a, S> Freeze for AuthBuilder<'a, S>
impl<'a, S> RefUnwindSafe for AuthBuilder<'a, S>
impl<'a, S> Send for AuthBuilder<'a, S>
impl<'a, S> Sync for AuthBuilder<'a, S>
impl<'a, S> Unpin for AuthBuilder<'a, S>
impl<'a, S> UnwindSafe for AuthBuilder<'a, S>
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