pub struct CertificateV0 {
pub content: CertificateContentV0,
pub sig: CertificateSignatureV0,
}
Expand description
A Certificate object (not a commit) containing all the information needed to verify a signature.
Fields§
§content: CertificateContentV0
content of the certificate, which is signed here below by the previous certificate signers.
sig: CertificateSignatureV0
signature over the content.
Implementations§
Source§impl CertificateV0
impl CertificateV0
pub fn verify_with_repo_id(&self, repo_id: &RepoId) -> Result<(), NgError>
pub fn get_owners_pub_key(&self) -> &PublicKey
Trait Implementations§
Source§impl Clone for CertificateV0
impl Clone for CertificateV0
Source§fn clone(&self) -> CertificateV0
fn clone(&self) -> CertificateV0
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for CertificateV0
impl Debug for CertificateV0
Source§impl<'de> Deserialize<'de> for CertificateV0
impl<'de> Deserialize<'de> for CertificateV0
Source§fn 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
Source§impl PartialEq for CertificateV0
impl PartialEq for CertificateV0
Source§impl Serialize for CertificateV0
impl Serialize for CertificateV0
impl Eq for CertificateV0
impl StructuralPartialEq for CertificateV0
Auto Trait Implementations§
impl Freeze for CertificateV0
impl RefUnwindSafe for CertificateV0
impl Send for CertificateV0
impl Sync for CertificateV0
impl Unpin for CertificateV0
impl UnwindSafe for CertificateV0
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