Struct fuzzytags::TaggingKey[][src]

pub struct TaggingKey<const GAMMA: u8>(_);

A public identity that others can create tags for.

Implementations

impl<const GAMMA: u8> TaggingKey<{ GAMMA }>[src]

pub fn id(&self) -> String[src]

a convenient id for a tagging key for internal accounting purposes do not expose this to applications

pub fn generate_tag(&self) -> Tag<{ GAMMA }>[src]

generate a new tag for this tagging key Example:

    use fuzzytags::{RootSecret};
    let secret = RootSecret::<24>::generate();
    let tagging_key = secret.tagging_key(); // give this to a sender
    let tag = tagging_key.generate_tag();

Trait Implementations

impl<const GAMMA: u8> Clone for TaggingKey<GAMMA>[src]

impl<const GAMMA: u8> Debug for TaggingKey<GAMMA>[src]

impl<'de, const GAMMA: u8> Deserialize<'de> for TaggingKey<GAMMA>[src]

impl<const GAMMA: u8> Serialize for TaggingKey<GAMMA>[src]

Auto Trait Implementations

impl<const GAMMA: u8> RefUnwindSafe for TaggingKey<GAMMA>[src]

impl<const GAMMA: u8> Send for TaggingKey<GAMMA>[src]

impl<const GAMMA: u8> Sync for TaggingKey<GAMMA>[src]

impl<const GAMMA: u8> Unpin for TaggingKey<GAMMA>[src]

impl<const GAMMA: u8> UnwindSafe for TaggingKey<GAMMA>[src]

Blanket Implementations

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

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

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

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

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

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

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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<V, T> VZip<V> for T where
    V: MultiLane<T>,