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

pub enum OutputFormat {
    Csv,
    ExtendedCsv,
    Json,
    Openbgpd,
    Rpsl,
    Summary,
    None,
}

The output format for VRPs.

Variants

Csv

CSV format.

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

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".

Openbgpd

OpenBGPD configuration format.

Specifically, this produces as roa-set.

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.

Methods

impl OutputFormat[src]

pub const VALUES: &'static [&'static str][src]

A list of the known output formats.

pub const DEFAULT_VALUE: &'static str[src]

The default output format.

impl OutputFormat[src]

pub fn extra_output(self) -> bool[src]

Returns whether this output format requires extra output.

pub fn needs_metrics(self) -> bool[src]

Returns whether this output format requires metrics.

Important traits for OutputStream<T, F, M>
pub fn stream<T, F, M>(
    self,
    origins: T,
    filters: Option<F>,
    metrics: M
) -> OutputStream<T, F, M>
[src]

Creates an output stream for this format.

pub fn output<W: Write>(
    self,
    vrps: &AddressOrigins,
    filters: Option<&[Filter]>,
    metrics: &Metrics,
    target: &mut W
) -> Result<(), Error>
[src]

Outputs vrps to target in this format.

This method loggs error messages.

pub fn content_type(self) -> &'static str[src]

Trait Implementations

impl Clone for OutputFormat[src]

impl Copy for OutputFormat[src]

impl Debug for OutputFormat[src]

impl FromStr for OutputFormat[src]

type Err = Error

The associated error which can be returned from parsing.

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 = !

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]

impl<V, T> VZip<V> for T where
    V: MultiLane<T>, 

impl<'a, T> TryFrom<&'a str> for T where
    T: FromStr

type Err = <T as FromStr>::Err

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 

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