pub struct HotpBuilder<'h, S: State = Empty> { /* private fields */ }
Expand description
Use builder syntax to set the inputs and finish with build()
.
Implementations§
Source§impl<'h, S: State> HotpBuilder<'h, S>
impl<'h, S: State> HotpBuilder<'h, S>
Sourcepub fn build(self) -> Hotp<'h>where
S: IsComplete,
pub fn build(self) -> Hotp<'h>where
S: IsComplete,
Finish building and return the requested object
Sourcepub fn base(self, value: Base<'h>) -> HotpBuilder<'h, SetBase<S>>where
S::Base: IsUnset,
pub fn base(self, value: Base<'h>) -> HotpBuilder<'h, SetBase<S>>where
S::Base: IsUnset,
Required.
The base configuration.
Sourcepub fn counter(self, value: Counter) -> HotpBuilder<'h, SetCounter<S>>where
S::Counter: IsUnset,
pub fn counter(self, value: Counter) -> HotpBuilder<'h, SetCounter<S>>where
S::Counter: IsUnset,
Sourcepub fn maybe_counter(
self,
value: Option<Counter>,
) -> HotpBuilder<'h, SetCounter<S>>where
S::Counter: IsUnset,
pub fn maybe_counter(
self,
value: Option<Counter>,
) -> HotpBuilder<'h, SetCounter<S>>where
S::Counter: IsUnset,
Auto Trait Implementations§
impl<'h, S> Freeze for HotpBuilder<'h, S>
impl<'h, S> RefUnwindSafe for HotpBuilder<'h, S>
impl<'h, S> Send for HotpBuilder<'h, S>
impl<'h, S> Sync for HotpBuilder<'h, S>
impl<'h, S> Unpin for HotpBuilder<'h, S>
impl<'h, S> UnwindSafe for HotpBuilder<'h, 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