Struct castor::Token [] [src]

pub struct Token(_);

A Token is a unique identifier for a stored value

Methods

impl Token
[src]

[src]

Generate a new token for the given value

Tokens are generated using SHA256

[src]

Create a new token from an existing token string

[src]

Return a reference to the inner string

Trait Implementations

impl Clone for Token
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl AsRef<[u8]> for Token
[src]

[src]

Performs the conversion.

impl<'a> From<&'a [u8]> for Token
[src]

[src]

Performs the conversion.

Auto Trait Implementations

impl Send for Token

impl Sync for Token