[−][src]Struct rpki::manifest::Manifest
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]
self,
cert: &ResourceCert,
strict: bool
) -> Result<(ResourceCert, ManifestContent), ValidationError>
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]
self,
cert: &ResourceCert,
strict: bool,
now: Time
) -> Result<(ResourceCert, ManifestContent), ValidationError>
Trait Implementations
impl Clone for Manifest
[src]
fn clone(&self) -> 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
Blanket Implementations
impl<T, U> Into for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
impl<T> From for T
[src]
impl<T, U> TryFrom for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T> Borrow for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,