[][src]Struct pgp::packet::UserId

pub struct UserId { /* fields omitted */ }

User ID Packet https://tools.ietf.org/html/rfc4880.html#section-5.11

Methods

impl UserId[src]

pub fn from_slice(packet_version: Version, input: &[u8]) -> Result<Self>[src]

Parses a UserId packet from the given slice.

pub fn from_str(packet_version: Version, input: &str) -> Self[src]

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

pub fn sign<F>(
    &self,
    key: &impl SecretKeyTrait,
    key_pw: F
) -> Result<SignedUser> where
    F: FnOnce() -> String
[src]

pub fn into_signed(self, sig: Signature) -> SignedUser[src]

Trait Implementations

impl Clone for UserId[src]

impl Debug for UserId[src]

impl Display for UserId[src]

impl Eq for UserId[src]

impl From<UserId> for Packet[src]

impl PacketTrait for UserId[src]

impl PartialEq<UserId> for UserId[src]

impl Serialize for UserId[src]

impl StructuralEq for UserId[src]

impl StructuralPartialEq for UserId[src]

impl TryFrom<Packet> for UserId[src]

type Err = Error

Auto Trait Implementations

impl RefUnwindSafe for UserId

impl Send for UserId

impl Sync for UserId

impl Unpin for UserId

impl UnwindSafe for UserId

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> 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> ToString for T where
    T: Display + ?Sized
[src]

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<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Err = <U as TryFrom<T>>::Err

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,