[−][src]Struct pgp::packet::UserId
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]
&self,
key: &impl SecretKeyTrait,
key_pw: F
) -> Result<SignedUser> where
F: FnOnce() -> String,
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]
fn to_writer<W: Write>(&self, writer: &mut W) -> Result<()>
[src]
fn to_bytes(&self) -> Result<Vec<u8>>
[src]
impl StructuralEq for UserId
[src]
impl StructuralPartialEq for UserId
[src]
impl TryFrom<Packet> for UserId
[src]
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]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,