sequoia_openpgp/packet/
prelude.rs

1//! Brings the most relevant types and traits into scope for working
2//! with packets.
3//!
4//! Less often used types and traits that are more likely to lead to a
5//! naming conflict are not brought into scope.  For instance, the
6//! markers [`PublicParts`], etc. are not imported to avoid potential
7//! naming conflicts.  Instead, they should be accessed as
8//! [`key::PublicParts`].  And, [`user_attribute::Subpacket`] is not
9//! imported, because it is rarely used.  If required, it should be
10//! imported explicitly.
11//!
12//! [`PublicParts`]: key::PublicParts
13//! [`user_attribute::Subpacket`]: user_attribute::Subpacket
14//!
15//! # Examples
16//!
17//! ```
18//! # #![allow(unused_imports)]
19//! # use sequoia_openpgp as openpgp;
20//! use openpgp::packet::prelude::*;
21//! ```
22
23pub use crate::packet::{
24    Any,
25    Body,
26    CompressedData,
27    Container,
28    Header,
29    Key,
30    Literal,
31    MDC,
32    Marker,
33    OnePassSig,
34    PKESK,
35    Packet,
36    Padding,
37    SEIP,
38    SKESK,
39    Signature,
40    Tag,
41    Trust,
42    Unknown,
43    UserAttribute,
44    UserID,
45    key,
46    key::Key4,
47    key::Key6,
48    key::SecretKeyMaterial,
49    one_pass_sig::OnePassSig3,
50    one_pass_sig::OnePassSig6,
51    pkesk::{
52        PKESK3,
53        PKESK6,
54    },
55    seip::{
56        SEIP1,
57        SEIP2,
58    },
59    signature,
60    signature::Signature4,
61    signature::Signature6,
62    signature::SignatureBuilder,
63    skesk::SKESK4,
64    skesk::SKESK6,
65    user_attribute,
66};