#[non_exhaustive]pub struct AttestorPublicKey {
pub comment: String,
pub id: String,
pub public_key: Option<PublicKey>,
/* private fields */
}
Expand description
An attestor public key that will be used to verify attestations signed by this attestor.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.comment: String
Optional. A descriptive comment. This field may be updated.
id: String
The ID of this public key.
Signatures verified by BinAuthz must include the ID of the public key that
can be used to verify them, and that ID must match the contents of this
field exactly.
Additional restrictions on this field can be imposed based on which public
key type is encapsulated. See the documentation on public_key
cases below
for details.
public_key: Option<PublicKey>
Implementations§
Source§impl AttestorPublicKey
impl AttestorPublicKey
pub fn new() -> Self
Sourcepub fn set_comment<T: Into<String>>(self, v: T) -> Self
pub fn set_comment<T: Into<String>>(self, v: T) -> Self
Sets the value of comment.
Sourcepub fn set_public_key<T: Into<Option<PublicKey>>>(self, v: T) -> Self
pub fn set_public_key<T: Into<Option<PublicKey>>>(self, v: T) -> Self
Sets the value of public_key.
Note that all the setters affecting public_key
are mutually
exclusive.
Sourcepub fn ascii_armored_pgp_public_key(&self) -> Option<&String>
pub fn ascii_armored_pgp_public_key(&self) -> Option<&String>
The value of public_key
if it holds a AsciiArmoredPgpPublicKey
, None
if the field is not set or
holds a different branch.
Sourcepub fn set_ascii_armored_pgp_public_key<T: Into<String>>(self, v: T) -> Self
pub fn set_ascii_armored_pgp_public_key<T: Into<String>>(self, v: T) -> Self
Sets the value of public_key
to hold a AsciiArmoredPgpPublicKey
.
Note that all the setters affecting public_key
are
mutually exclusive.
Sourcepub fn pkix_public_key(&self) -> Option<&Box<PkixPublicKey>>
pub fn pkix_public_key(&self) -> Option<&Box<PkixPublicKey>>
The value of public_key
if it holds a PkixPublicKey
, None
if the field is not set or
holds a different branch.
Sourcepub fn set_pkix_public_key<T: Into<Box<PkixPublicKey>>>(self, v: T) -> Self
pub fn set_pkix_public_key<T: Into<Box<PkixPublicKey>>>(self, v: T) -> Self
Sets the value of public_key
to hold a PkixPublicKey
.
Note that all the setters affecting public_key
are
mutually exclusive.
Trait Implementations§
Source§impl Clone for AttestorPublicKey
impl Clone for AttestorPublicKey
Source§fn clone(&self) -> AttestorPublicKey
fn clone(&self) -> AttestorPublicKey
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more