1 //! Brings the most relevant types and traits into scope for working 2 //! with packets. 3 //! 4 //! Less often used types and types 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/struct.PublicParts.html 13 //! [`key::PublicParts`]: ../key/struct.PublicParts.html 14 //! [`user_attribute::Subpacket`]: ../user_attribute/struct.Subpacket.html 15 //! 16 //! # Examples 17 //! 18 //! ``` 19 //! # #![allow(unused_imports)] 20 //! # extern crate sequoia_openpgp as openpgp; 21 //! use openpgp::packet::prelude::*; 22 //! ``` 23 24 pub use crate::packet::{ 25 AED, 26 Body, 27 CompressedData, 28 Container, 29 Header, 30 Key, 31 Literal, 32 MDC, 33 Marker, 34 OnePassSig, 35 PKESK, 36 Packet, 37 SEIP, 38 SKESK, 39 Signature, 40 Tag, 41 Trust, 42 Unknown, 43 UserAttribute, 44 UserID, 45 aed::AED1, 46 key, 47 key::Key4, 48 key::SecretKeyMaterial, 49 one_pass_sig::OnePassSig3, 50 pkesk::PKESK3, 51 seip::SEIP1, 52 signature, 53 signature::Signature4, 54 signature::SignatureBuilder, 55 skesk::SKESK4, 56 skesk::SKESK5, 57 user_attribute, 58 }; 59