Enum routinator::output::OutputFormat[][src]

pub enum OutputFormat {
    Csv,
    CompatCsv,
    ExtendedCsv,
    Json,
    ExtendedJson,
    Openbgpd,
    Bird1,
    Bird2,
    Rpsl,
    Summary,
    None,
}
Expand description

The output format for VRPs.

Variants

Csv

CSV format.

Each row has the AS number, prefix, max-length, and TA.

CompatCsv

RIPE NCC Validator compatible CSV format.

This quotes all values and prints the AS number as just the number.

ExtendedCsv

Extended CSV format.

Each row has URI, ASN, prefix, max-length, not before, not after.

Json

RIPE NCC Validator JSON format.

This is a JSON object with one element "roas" which is an array of objects, each with the elements "asn", "prefix", "maxLength", and "ta".

ExtendedJson

JSON format with extended information.

Openbgpd

OpenBGPD configuration format.

Specifically, this produces as roa-set.

Bird1

BIRD configuration format.

Specifically, this produces as roa table.

Bird2

BIRD2 configuration format.

Specifically, this produces as route table.

Rpsl

RPSL output.

This produces a sequence of RPSL objects with various fields.

Summary

Summary output.

Produces a textual summary of the ROAs and VRPS.

None

No output.

Seriously: no output.

Implementations

The default output format name.

Returns the output format for a given request path.

Returns the media type string for this output format.

Outputs a payload snapshot to a writer.

Creates an output stream for this format.

Trait Implementations

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 associated error which can be returned from parsing.

Parses a string s to return a value of this type. 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.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

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)

recently added

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.