From d183e12a3231e4c505f5f2cf48b6c1f881ad258a Mon Sep 17 00:00:00 2001 From: Justus Winter Date: Thu, 6 Feb 2020 14:15:10 +0100 Subject: openpgp: Rename ComponentBinding to ComponentBundle, etc. - Likewise KeyBinding, UserIDBinding, UserAttributeBinding, UnknownBinding, etc. - Reason: a self-signature on a component is a binding, but revocations and TPSes are not bindings. - Consistently call collections of components and associated signatures bundles now. Likewise for fields, methods. - Fixes #425. --- examples/guide-exploring-openpgp.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'examples') diff --git a/examples/guide-exploring-openpgp.rs b/examples/guide-exploring-openpgp.rs index 05a777e4..6d905b9e 100644 --- a/examples/guide-exploring-openpgp.rs +++ b/examples/guide-exploring-openpgp.rs @@ -58,15 +58,15 @@ fn main() { for (i, ca) in cert.userids().set_policy(p, None).enumerate() { println!("{}: UID: {}, {} self-signature(s), {} certification(s)", i, ca.userid(), - ca.binding().self_signatures().len(), - ca.binding().certifications().len()); + ca.bundle().self_signatures().len(), + ca.bundle().certifications().len()); } // List subkeys. for (i, ka) in cert.keys().set_policy(p, None).skip(1).enumerate() { println!("{}: Fingerprint: {}, {} self-signature(s), {} certification(s)", i, ka.key().fingerprint(), - ka.binding().self_signatures().len(), - ka.binding().certifications().len()); + ka.bundle().self_signatures().len(), + ka.bundle().certifications().len()); } } -- cgit v1.2.3