[][src]Struct itsdangerous::signer::SignerBuilder

pub struct SignerBuilder<Digest, Algorithm, KeyDerivation> { /* fields omitted */ }

Methods

impl<Digest, Algorithm, KeyDerivation> SignerBuilder<Digest, Algorithm, KeyDerivation> where
    Digest: Input + BlockInput + FixedOutput + Reset + Default + Clone,
    Digest::BlockSize: ArrayLength<u8> + Clone,
    Digest::OutputSize: ArrayLength<u8>,
    Algorithm: SigningAlgorithm,
    Algorithm::OutputSize: ArrayLength<u8>,
    KeyDerivation: DeriveKey
[src]

pub fn new<S: Into<Cow<'static, str>>>(secret_key: S) -> Self[src]

Constructs a new signer builder with a given secret key.

pub fn with_salt<S: Into<Cow<'static, str>>>(self, salt: S) -> Self[src]

Uses a specific salt with the signer. If no salt is defined, will default to DEFAULT_SALT.

pub fn with_seperator(self, seperator: Seperator) -> Self[src]

Uses a specific seperator with the signer. If no seperator is defined, will default to '.'

pub fn build(
    self
) -> Signer<Algorithm, Digest::OutputSize, Base64SizedEncoder<Algorithm::OutputSize>>
[src]

Builds a Signer using the configuration specified in this builder.

Auto Trait Implementations

impl<Digest, Algorithm, KeyDerivation> Send for SignerBuilder<Digest, Algorithm, KeyDerivation> where
    Algorithm: Send,
    Digest: Send,
    KeyDerivation: Send

impl<Digest, Algorithm, KeyDerivation> Sync for SignerBuilder<Digest, Algorithm, KeyDerivation> where
    Algorithm: Sync,
    Digest: Sync,
    KeyDerivation: Sync

Blanket Implementations

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Same<T> for T[src]

type Output = T

Should always be Self