pub struct Attributes<'a>(/* private fields */);
Expand description

Various X509 attributes parsed out in raw bytes.

Implementations§

source§

impl Attributes<'_>

source

pub fn country(&self) -> Option<&[u8]>

Country

source

pub fn organization(&self) -> Option<&[u8]>

Organization

source

pub fn organizational_unit(&self) -> Option<&[u8]>

Organizational unit

source

pub fn name_qualifier(&self) -> Option<&[u8]>

Name qualifier

source

pub fn state(&self) -> Option<&[u8]>

State

source

pub fn common_name(&self) -> Option<&[u8]>

Common name

source

pub fn serial_number(&self) -> Option<&[u8]>

Serial number

source

pub fn locality(&self) -> Option<&[u8]>

Locality

source

pub fn title(&self) -> Option<&[u8]>

Title

source

pub fn surname(&self) -> Option<&[u8]>

Surname

source

pub fn given_name(&self) -> Option<&[u8]>

Given name

source

pub fn initials(&self) -> Option<&[u8]>

Initials

source

pub fn pseudonym(&self) -> Option<&[u8]>

Pseudonym

source

pub fn generation_qualifier(&self) -> Option<&[u8]>

Generation qualifier

source

pub fn email_address(&self) -> Option<&[u8]>

Email address

Auto Trait Implementations§

§

impl<'a> RefUnwindSafe for Attributes<'a>

§

impl<'a> !Send for Attributes<'a>

§

impl<'a> !Sync for Attributes<'a>

§

impl<'a> Unpin for Attributes<'a>

§

impl<'a> UnwindSafe for Attributes<'a>

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.