[][src]Trait itsdangerous::AsSigner

pub trait AsSigner {
    type Signer: Signer;
    fn as_signer(&self) -> &Self::Signer;
}

Associated Types

Loading content...

Required methods

fn as_signer(&self) -> &Self::Signer

Returns a reference to the underlying Signer if you wish to use its methods.

Example

use itsdangerous::{default_builder, TimestampSigner, IntoTimestampSigner, Signer, AsSigner};

let timestamp_signer = default_builder("hello world").build().into_timestamp_signer();
let signer = timestamp_signer.as_signer();
let signer = signer.sign("hello without a timestamp!");
Loading content...

Implementors

Loading content...