pub struct Manifest { /* private fields */ }
Expand description

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.

Implementations

Decodes a manifest from a source.

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.

Returns a value encoder for a reference to the manifest.

Returns a DER encoded Captured for this.

Returns a reference to the EE certificate of this manifest.

Returns a reference to the manifest content.

Methods from Deref<Target = ManifestContent>

Returns the manifest number.

Returns the time when this manifest was created.

Returns the time when the next update to the manifest should appear.

Returns the hash algorithm for the file list entries.

Returns an iterator over the file list.

Returns an iterator over URL and hash pairs.

The iterator assumes that all files referred to in the manifest are relative to the given rsync URI.

Returns the length of the file list.

Returns whether the file list is empty.

Returns whether the manifest is stale.

A manifest is stale if it’s nextUpdate time has passed.

Returns a value encoder for a reference to the content.

Trait Implementations

Performs the conversion.

Performs the conversion.

Immutably borrows from an owned value. Read more

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

The resulting type after dereferencing.

Dereferences the value.

Deserialize this value from the given Serde deserializer. Read more

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.