pub struct TrustedRegistryManifestKey {
pub key_id: String,
pub public_key: Vec<u8>,
pub scope: RegistryManifestTrustScope,
}Fields§
§key_id: String§public_key: Vec<u8>§scope: RegistryManifestTrustScopeImplementations§
Source§impl TrustedRegistryManifestKey
impl TrustedRegistryManifestKey
pub fn from_base64( key_id: String, public_key: &str, allowed_owner: String, allowed_source: String, ) -> Result<Self, RegistryManifestKeyError>
pub fn official_from_base64( key_id: String, public_key: &str, ) -> Result<Self, RegistryManifestKeyError>
pub fn public_key_base64(&self) -> String
Trait Implementations§
Source§impl Clone for TrustedRegistryManifestKey
impl Clone for TrustedRegistryManifestKey
Source§fn clone(&self) -> TrustedRegistryManifestKey
fn clone(&self) -> TrustedRegistryManifestKey
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for TrustedRegistryManifestKey
impl Debug for TrustedRegistryManifestKey
impl Eq for TrustedRegistryManifestKey
Source§impl PartialEq for TrustedRegistryManifestKey
impl PartialEq for TrustedRegistryManifestKey
Source§fn eq(&self, other: &TrustedRegistryManifestKey) -> bool
fn eq(&self, other: &TrustedRegistryManifestKey) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for TrustedRegistryManifestKey
Auto Trait Implementations§
impl Freeze for TrustedRegistryManifestKey
impl RefUnwindSafe for TrustedRegistryManifestKey
impl Send for TrustedRegistryManifestKey
impl Sync for TrustedRegistryManifestKey
impl Unpin for TrustedRegistryManifestKey
impl UnsafeUnpin for TrustedRegistryManifestKey
impl UnwindSafe for TrustedRegistryManifestKey
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.