Struct google_binaryauthorization1::api::AttestorPublicKey
source · [−]pub struct AttestorPublicKey {
pub ascii_armored_pgp_public_key: Option<String>,
pub comment: Option<String>,
pub id: Option<String>,
pub pkix_public_key: Option<PkixPublicKey>,
}Expand description
An attestor public key that will be used to verify attestations signed by this attestor.
This type is not used in any activity, and only used as part of another schema.
Fields
ascii_armored_pgp_public_key: Option<String>ASCII-armored representation of a PGP public key, as the entire output by the command gpg --export --armor foo@example.com (either LF or CRLF line endings). When using this field, id should be left blank. The BinAuthz API handlers will calculate the ID and fill it in automatically. BinAuthz computes this ID as the OpenPGP RFC4880 V4 fingerprint, represented as upper-case hex. If id is provided by the caller, it will be overwritten by the API-calculated ID.
comment: Option<String>Optional. A descriptive comment. This field may be updated.
id: Option<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.
pkix_public_key: Option<PkixPublicKey>A raw PKIX SubjectPublicKeyInfo format public key. NOTE: id may be explicitly provided by the caller when using this type of public key, but it MUST be a valid RFC3986 URI. If id is left blank, a default one will be computed based on the digest of the DER encoding of the public key.
Trait Implementations
sourceimpl Clone for AttestorPublicKey
impl Clone for AttestorPublicKey
sourcefn clone(&self) -> AttestorPublicKey
fn clone(&self) -> AttestorPublicKey
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more
sourceimpl Debug for AttestorPublicKey
impl Debug for AttestorPublicKey
sourceimpl Default for AttestorPublicKey
impl Default for AttestorPublicKey
sourcefn default() -> AttestorPublicKey
fn default() -> AttestorPublicKey
Returns the “default value” for a type. Read more
sourceimpl<'de> Deserialize<'de> for AttestorPublicKey
impl<'de> Deserialize<'de> for AttestorPublicKey
sourcefn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
sourceimpl Serialize for AttestorPublicKey
impl Serialize for AttestorPublicKey
impl Part for AttestorPublicKey
Auto Trait Implementations
impl RefUnwindSafe for AttestorPublicKey
impl Send for AttestorPublicKey
impl Sync for AttestorPublicKey
impl Unpin for AttestorPublicKey
impl UnwindSafe for AttestorPublicKey
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into)Uses borrowed data to replace owned data, usually by cloning. Read more
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber to this type, returning a
WithDispatch wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber to this type, returning a
WithDispatch wrapper. Read more