[][src]Struct rpki::cert::ResourceCert

pub struct ResourceCert { /* fields omitted */ }

A validated resource certificate.

This differs from a normal Cert in that its IP and AS resources are resolved into concrete values.

Methods

impl ResourceCert[src]

pub fn as_cert(&self) -> &Cert[src]

Returns a reference to the underlying certificate.

pub fn v4_resources(&self) -> &IpBlocks[src]

Returns a reference to the IPv4 resources of this certificate.

pub fn v6_resources(&self) -> &IpBlocks[src]

Returns a reference to the IPv6 resources of this certificate.

pub fn as_resources(&self) -> &AsBlocks[src]

Returns a reference to the AS resources of this certificate.

pub fn tal(&self) -> &Arc<TalInfo>[src]

Returns information about the TAL this certificate is based on.

pub fn into_tal(self) -> Arc<TalInfo>[src]

Converts the certificate into its TAL info.

Methods from Deref<Target = Cert>

pub fn encode_ref<'a>(&'a self) -> impl Values + 'a[src]

Returns a value encoder for a reference to the certificate.

pub fn to_captured(&self) -> Captured[src]

Returns a captured encoding of the certificate.

Trait Implementations

impl AsRef<Cert> for ResourceCert[src]

impl AsRef<TbsCert> for ResourceCert[src]

impl Clone for ResourceCert[src]

impl Debug for ResourceCert[src]

impl Deref for ResourceCert[src]

type Target = Cert

The resulting type after dereferencing.

Auto Trait Implementations

Blanket Implementations

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for T[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]