Struct pkix::x509::TbsCertificate
source · pub struct TbsCertificate<S: Integer, A: SignatureAlgorithm, K> {
pub version: u8,
pub serial: S,
pub sigalg: A,
pub issuer: Name,
pub validity_notbefore: DateTime,
pub validity_notafter: DateTime,
pub subject: Name,
pub spki: K,
pub extensions: Vec<Extension>,
}
Fields§
§version: u8
§serial: S
§sigalg: A
§issuer: Name
§validity_notbefore: DateTime
§validity_notafter: DateTime
§subject: Name
§spki: K
§extensions: Vec<Extension>
Implementations§
source§impl<S: Integer, A: SignatureAlgorithm, K> TbsCertificate<S, A, K>
impl<S: Integer, A: SignatureAlgorithm, K> TbsCertificate<S, A, K>
sourcepub fn get_extension(&self, oid: &ObjectIdentifier) -> Option<Extension>
pub fn get_extension(&self, oid: &ObjectIdentifier) -> Option<Extension>
Find the extension indicated by oid
. If exactly one instance
of the extension is present, returns it. Otherwise, returns None
.
Trait Implementations§
source§impl<S: BERDecodable + Integer, A: BERDecodable + SignatureAlgorithm, K: BERDecodable> BERDecodable for TbsCertificate<S, A, K>
impl<S: BERDecodable + Integer, A: BERDecodable + SignatureAlgorithm, K: BERDecodable> BERDecodable for TbsCertificate<S, A, K>
source§fn decode_ber<'a, 'b>(reader: BERReader<'a, 'b>) -> ASN1Result<Self>
fn decode_ber<'a, 'b>(reader: BERReader<'a, 'b>) -> ASN1Result<Self>
source§impl<S: Clone + Integer, A: Clone + SignatureAlgorithm, K: Clone> Clone for TbsCertificate<S, A, K>
impl<S: Clone + Integer, A: Clone + SignatureAlgorithm, K: Clone> Clone for TbsCertificate<S, A, K>
source§fn clone(&self) -> TbsCertificate<S, A, K>
fn clone(&self) -> TbsCertificate<S, A, K>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl<S: Debug + Integer, A: Debug + SignatureAlgorithm, K: Debug> Debug for TbsCertificate<S, A, K>
impl<S: Debug + Integer, A: Debug + SignatureAlgorithm, K: Debug> Debug for TbsCertificate<S, A, K>
source§impl<S: DerWrite + Integer, A: DerWrite + SignatureAlgorithm, K: DerWrite> DerWrite for TbsCertificate<S, A, K>
impl<S: DerWrite + Integer, A: DerWrite + SignatureAlgorithm, K: DerWrite> DerWrite for TbsCertificate<S, A, K>
source§impl<S: Hash + Integer, A: Hash + SignatureAlgorithm, K: Hash> Hash for TbsCertificate<S, A, K>
impl<S: Hash + Integer, A: Hash + SignatureAlgorithm, K: Hash> Hash for TbsCertificate<S, A, K>
source§impl<S: PartialEq + Integer, A: PartialEq + SignatureAlgorithm, K: PartialEq> PartialEq for TbsCertificate<S, A, K>
impl<S: PartialEq + Integer, A: PartialEq + SignatureAlgorithm, K: PartialEq> PartialEq for TbsCertificate<S, A, K>
source§fn eq(&self, other: &TbsCertificate<S, A, K>) -> bool
fn eq(&self, other: &TbsCertificate<S, A, K>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl<S: Eq + Integer, A: Eq + SignatureAlgorithm, K: Eq> Eq for TbsCertificate<S, A, K>
impl<S: Integer, A: SignatureAlgorithm, K> StructuralEq for TbsCertificate<S, A, K>
impl<S: Integer, A: SignatureAlgorithm, K> StructuralPartialEq for TbsCertificate<S, A, K>
Auto Trait Implementations§
impl<S, A, K> RefUnwindSafe for TbsCertificate<S, A, K>where A: RefUnwindSafe, K: RefUnwindSafe, S: RefUnwindSafe,
impl<S, A, K> Send for TbsCertificate<S, A, K>where A: Send, K: Send, S: Send,
impl<S, A, K> Sync for TbsCertificate<S, A, K>where A: Sync, K: Sync, S: Sync,
impl<S, A, K> Unpin for TbsCertificate<S, A, K>where A: Unpin, K: Unpin, S: Unpin,
impl<S, A, K> UnwindSafe for TbsCertificate<S, A, K>where A: UnwindSafe, K: UnwindSafe, S: UnwindSafe,
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