[][src]Struct rpki::manifest::Manifest

pub struct Manifest { /* fields omitted */ }

A decoded RPKI manifest.

This type represents a manifest decoded from a source. In order to get to the manifest’s content, you need to validate it via the validate method.

Methods

impl Manifest[src]

pub fn decode<S: Source>(source: S, strict: bool) -> Result<Self, S::Err>[src]

Decodes a manifest from a source.

pub fn validate(
    self,
    cert: &ResourceCert,
    strict: bool
) -> Result<(ResourceCert, ManifestContent), ValidationError>
[src]

Validates the manifest.

You need to pass in the certificate of the issuing CA. If validation succeeds, the result will be the EE certificate of the manifest and the manifest content.

pub fn validate_at(
    self,
    cert: &ResourceCert,
    strict: bool,
    now: Time
) -> Result<(ResourceCert, ManifestContent), ValidationError>
[src]

Trait Implementations

impl Clone for Manifest[src]

fn clone_from(&mut self, source: &Self)
1.0.0
[src]

Performs copy-assignment from source. Read more

impl Debug for Manifest[src]

Auto Trait Implementations

impl Send for Manifest

impl Sync for Manifest

Blanket Implementations

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

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

type Owned = T

impl<T> From for T[src]

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

type Error = Infallible

The type returned in the event of a conversion error.

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

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

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

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

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

The type returned in the event of a conversion error.