x509_cert::ext::pkix::certpolicy

Type Alias CpsUri

Source
pub type CpsUri = Ia5String;
Expand description

CpsUri as defined in RFC 5280 Section 4.2.1.4.

CPSuri ::= IA5String

Aliased Type§

struct CpsUri { /* private fields */ }

Implementations

Source§

impl Ia5String

Source

pub fn new<T>(input: &T) -> Result<Ia5String, Error>
where T: AsRef<[u8]> + ?Sized,

Create a new IA5String.

Trait Implementations

Source§

impl AsRef<[u8]> for Ia5String

Source§

fn as_ref(&self) -> &[u8]

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<str> for Ia5String

Source§

fn as_ref(&self) -> &str

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl Clone for Ia5String

Source§

fn clone(&self) -> Ia5String

Returns a copy of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for Ia5String

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
Source§

impl<'__der> DecodeValue<'__der> for Ia5String

Source§

fn decode_value<R>(reader: &mut R, header: Header) -> Result<Ia5String, Error>
where R: Reader<'__der>,

Attempt to decode this message using the provided Reader.
Source§

impl Deref for Ia5String

Source§

type Target = StrOwned

The resulting type after dereferencing.
Source§

fn deref(&self) -> &<Ia5String as Deref>::Target

Dereferences the value.
Source§

impl Display for Ia5String

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
Source§

impl EncodeValue for Ia5String

Source§

fn value_len(&self) -> Result<Length, Error>

Compute the length of this value (sans [Tag]+Length header) when encoded as ASN.1 DER.
Source§

fn encode_value(&self, writer: &mut impl Writer) -> Result<(), Error>

Encode value (sans [Tag]+Length header) as ASN.1 DER using the provided Writer.
Source§

fn header(&self) -> Result<Header, Error>
where Self: Tagged,

Get the Header used to encode this value.
Source§

impl FixedTag for Ia5String

Source§

const TAG: Tag = Tag::Ia5String

ASN.1 tag
Source§

impl<'a> From<Ia5StringRef<'a>> for Ia5String

Source§

fn from(international_string: Ia5StringRef<'a>) -> Ia5String

Converts to this type from the input type.
Source§

impl Ord for Ia5String

Source§

fn cmp(&self, other: &Ia5String) -> Ordering

This method returns an Ordering between self and other. Read more
1.21.0 · Source§

fn max(self, other: Self) -> Self
where Self: Sized,

Compares and returns the maximum of two values. Read more
1.21.0 · Source§

fn min(self, other: Self) -> Self
where Self: Sized,

Compares and returns the minimum of two values. Read more
1.50.0 · Source§

fn clamp(self, min: Self, max: Self) -> Self
where Self: Sized,

Restrict a value to a certain interval. Read more
Source§

impl OwnedToRef for Ia5String

Source§

type Borrowed<'a> = Ia5StringRef<'a>

The resulting type referencing back to Self
Source§

fn owned_to_ref(&self) -> <Ia5String as OwnedToRef>::Borrowed<'_>

Creates a new object referencing back to the self for storage
Source§

impl PartialEq for Ia5String

Source§

fn eq(&self, other: &Ia5String) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl PartialOrd for Ia5String

Source§

fn partial_cmp(&self, other: &Ia5String) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 · Source§

fn lt(&self, other: &Rhs) -> bool

Tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · Source§

fn le(&self, other: &Rhs) -> bool

Tests less than or equal to (for self and other) and is used by the <= operator. Read more
1.0.0 · Source§

fn gt(&self, other: &Rhs) -> bool

Tests greater than (for self and other) and is used by the > operator. Read more
1.0.0 · Source§

fn ge(&self, other: &Rhs) -> bool

Tests greater than or equal to (for self and other) and is used by the >= operator. Read more
Source§

impl<'__der> TryFrom<&'__der Any> for Ia5String

Source§

type Error = Error

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

fn try_from(any: &'__der Any) -> Result<Ia5String, Error>

Performs the conversion.
Source§

impl<'__der> TryFrom<AnyRef<'__der>> for Ia5String

Source§

type Error = Error

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

fn try_from(any: AnyRef<'__der>) -> Result<Ia5String, Error>

Performs the conversion.
Source§

impl TryFrom<String> for Ia5String

Source§

type Error = Error

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

fn try_from(input: String) -> Result<Ia5String, Error>

Performs the conversion.
Source§

impl Eq for Ia5String

Source§

impl StructuralPartialEq for Ia5String