pub struct BaseBuilder<'b, S: State = Empty> { /* private fields */ }
Expand description
Use builder syntax to set the inputs and finish with build()
.
Implementations§
Source§impl<'b, S: State> BaseBuilder<'b, S>
impl<'b, S: State> BaseBuilder<'b, S>
Sourcepub fn build(self) -> Base<'b>where
S: IsComplete,
pub fn build(self) -> Base<'b>where
S: IsComplete,
Finish building and return the requested object
Sourcepub fn secret(self, value: Secret<'b>) -> BaseBuilder<'b, SetSecret<S>>where
S::Secret: IsUnset,
pub fn secret(self, value: Secret<'b>) -> BaseBuilder<'b, SetSecret<S>>where
S::Secret: IsUnset,
Required.
The secret to use as the key.
Sourcepub fn algorithm(self, value: Algorithm) -> BaseBuilder<'b, SetAlgorithm<S>>where
S::Algorithm: IsUnset,
pub fn algorithm(self, value: Algorithm) -> BaseBuilder<'b, SetAlgorithm<S>>where
S::Algorithm: IsUnset,
Sourcepub fn maybe_algorithm(
self,
value: Option<Algorithm>,
) -> BaseBuilder<'b, SetAlgorithm<S>>where
S::Algorithm: IsUnset,
pub fn maybe_algorithm(
self,
value: Option<Algorithm>,
) -> BaseBuilder<'b, SetAlgorithm<S>>where
S::Algorithm: IsUnset,
Sourcepub fn digits(self, value: Digits) -> BaseBuilder<'b, SetDigits<S>>where
S::Digits: IsUnset,
pub fn digits(self, value: Digits) -> BaseBuilder<'b, SetDigits<S>>where
S::Digits: IsUnset,
Sourcepub fn maybe_digits(
self,
value: Option<Digits>,
) -> BaseBuilder<'b, SetDigits<S>>where
S::Digits: IsUnset,
pub fn maybe_digits(
self,
value: Option<Digits>,
) -> BaseBuilder<'b, SetDigits<S>>where
S::Digits: IsUnset,
Auto Trait Implementations§
impl<'b, S> Freeze for BaseBuilder<'b, S>
impl<'b, S> RefUnwindSafe for BaseBuilder<'b, S>
impl<'b, S> Send for BaseBuilder<'b, S>
impl<'b, S> Sync for BaseBuilder<'b, S>
impl<'b, S> Unpin for BaseBuilder<'b, S>
impl<'b, S> UnwindSafe for BaseBuilder<'b, 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