[][src]Type Definition sequoia_openpgp::cert::amalgamation::UserIDAmalgamation

type UserIDAmalgamation<'a> = ComponentAmalgamation<'a, UserID>;

A User ID and its associated data.

A specialized version of ComponentAmalgamation.

Methods

impl<'a> UserIDAmalgamation<'a>[src]

pub fn userid(&self) -> &'a UserID[src]

Returns a reference to the User ID.

Note: although ComponentAmalgamation<UserID> derefs to a &UserID (via &ComponentBundle), this method provides a more accurate lifetime, which is helpful when returning the reference from a function. See the module's documentation for more details.