Struct fuzzytags::TaggingKey [−][src]
pub struct TaggingKey<const GAMMA: u8>(_);
Expand description
A public identity that others can create tags for.
Implementations
a convenient id for a tagging key for internal accounting purposes do not expose this to applications
generate a new tag for this tagging key Example:
use fuzzytags::{RootSecret}; use rand::rngs::OsRng; let mut rng = OsRng; let secret = RootSecret::<24>::generate(&mut rng); let tagging_key = secret.tagging_key(); // give this to a sender let tag = tagging_key.generate_tag(&mut rng);
Trait Implementations
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations
impl<const GAMMA: u8> RefUnwindSafe for TaggingKey<GAMMA>
impl<const GAMMA: u8> Send for TaggingKey<GAMMA>
impl<const GAMMA: u8> Sync for TaggingKey<GAMMA>
impl<const GAMMA: u8> Unpin for TaggingKey<GAMMA>
impl<const GAMMA: u8> UnwindSafe for TaggingKey<GAMMA>
Blanket Implementations
Mutably borrows from an owned value. Read more
type Output = T
type Output = T
Should always be Self