pub struct SignedCert {
pub cert: DeviceCert,
pub signature: Signature,
}Expand description
A DeviceCert with its issuer’s signature.
Fields§
§cert: DeviceCert§signature: SignatureImplementations§
Source§impl SignedCert
impl SignedCert
Sourcepub fn verify(&self) -> Result<&DeviceCert, AuthError>
pub fn verify(&self) -> Result<&DeviceCert, AuthError>
Checks the signature against the certificate’s own issuer. Whether that issuer may vouch for devices in the campaign is up to the caller.
Sourcepub fn is_self_signed(&self) -> bool
pub fn is_self_signed(&self) -> bool
Whether the device signed its own certificate, as a campaign’s first DM device does.
Trait Implementations§
Source§impl Clone for SignedCert
impl Clone for SignedCert
Source§fn clone(&self) -> SignedCert
fn clone(&self) -> SignedCert
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 ComposeSchema for SignedCert
impl ComposeSchema for SignedCert
Source§impl Debug for SignedCert
impl Debug for SignedCert
Source§impl<'de> Deserialize<'de> for SignedCert
impl<'de> Deserialize<'de> for SignedCert
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 SignedCert
impl PartialEq for SignedCert
Source§fn eq(&self, other: &SignedCert) -> bool
fn eq(&self, other: &SignedCert) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for SignedCert
impl Serialize for SignedCert
Source§impl ToSchema for SignedCert
impl ToSchema for SignedCert
impl Eq for SignedCert
impl StructuralPartialEq for SignedCert
Auto Trait Implementations§
impl Freeze for SignedCert
impl RefUnwindSafe for SignedCert
impl Send for SignedCert
impl Sync for SignedCert
impl Unpin for SignedCert
impl UnsafeUnpin for SignedCert
impl UnwindSafe for SignedCert
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,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.