[][src]Struct sequoia_openpgp::packet::signature::subpacket::Subpacket

pub struct Subpacket { /* fields omitted */ }

Signature subpacket specified by Section of RFC 4880.


impl Subpacket[src]

pub fn new(value: SubpacketValue, critical: bool) -> Result<Subpacket>[src]

Creates a new subpacket.

pub fn critical(&self) -> bool[src]

Returns whether this subpacket is critical.

pub fn tag(&self) -> SubpacketTag[src]

Returns the subpacket tag.

pub fn value(&self) -> &SubpacketValue[src]

Returns the subpackets value.

Trait Implementations

impl Clone for Subpacket[src]

impl Debug for Subpacket[src]

impl Eq for Subpacket[src]

impl Hash for Subpacket[src]

impl Marshal for Subpacket[src]

impl MarshalInto for Subpacket[src]

impl PartialEq<Subpacket> for Subpacket[src]

impl StructuralEq for Subpacket[src]

impl StructuralPartialEq for Subpacket[src]

Auto Trait Implementations

Blanket Implementations

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

impl<T> Borrow<T> for T where
    T: ?Sized

impl<T> BorrowMut<T> for T where
    T: ?Sized

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

impl<T, U> Into<U> for T where
    U: From<T>, 

impl<T> ToOwned for T where
    T: Clone

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 

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

The type returned in the event of a conversion error.