diff options
author | Justus Winter <justus@sequoia-pgp.org> | 2020-11-27 14:27:45 +0100 |
---|---|---|
committer | Justus Winter <justus@sequoia-pgp.org> | 2020-11-27 14:27:45 +0100 |
commit | b4920e732c360fd6a4ad7ff6639129bbb67bf355 (patch) | |
tree | c2831818ce323222ad5c6cf6436e154fad33e86b /openpgp/src/cert.rs | |
parent | f46cd3f40fc81d9095bed8a2bee467c4dfcd110f (diff) |
openpgp: Mention the Cert::retain_userids and friends.
Diffstat (limited to 'openpgp/src/cert.rs')
-rw-r--r-- | openpgp/src/cert.rs | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/openpgp/src/cert.rs b/openpgp/src/cert.rs index 5090a4e6..29782b44 100644 --- a/openpgp/src/cert.rs +++ b/openpgp/src/cert.rs @@ -589,8 +589,16 @@ use super::*; /// /// # Filtering Certificates /// -/// To filter certificates, iterate over all components, clone what -/// you want to keep, and then reassemble the certificate. The +/// Component-wise filtering of userids, user attributes, and subkeys +/// can be done with [`Cert::retain_userids`], +/// [`Cert::retain_user_attributes`], and [`Cert::retain_subkeys`]. +/// +/// [`Cert::retain_userids`]: #method.retain_userids +/// [`Cert::retain_user_attributes`]: #method.retain_user_attributes +/// [`Cert::retain_subkeys`]: #method.retain_subkeys +/// +/// If you need even more control, iterate over all components, clone +/// what you want to keep, and then reassemble the certificate. The /// following example simply copies all the packets, and can be /// adapted to suit your policy: /// |