[−][src]Enum routinator::output::OutputFormat
The output format for VRPs.
Variants
CSV format.
Each row has the AS number, prefix, max-length, and TA.
Extended CSV format.
Each row has URI, ASN, prefix, max-length, not before, not after.
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 configuration format.
Specifically, this produces as roa-set
.
RPSL output.
This produces a sequence of RPSL objects with various fields.
Summary output.
Produces a textual summary of the ROAs and VRPS.
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]
self,
origins: T,
filters: Option<F>,
metrics: M
) -> OutputStream<T, F, M>
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]
self,
vrps: &AddressOrigins,
filters: Option<&[Filter]>,
metrics: &Metrics,
target: &mut W
) -> Result<(), Error>
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]
fn clone(&self) -> OutputFormat
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Copy for OutputFormat
[src]
impl Debug for OutputFormat
[src]
impl FromStr for OutputFormat
[src]
Auto Trait Implementations
impl Send for OutputFormat
impl Sync for OutputFormat
impl Unpin for OutputFormat
impl UnwindSafe for OutputFormat
impl RefUnwindSafe for OutputFormat
Blanket Implementations
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for T
[src]
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = !
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, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,
fn vzip(self) -> V
impl<'a, T> TryFrom<&'a str> for T where
T: FromStr,
T: FromStr,
type Err = <T as FromStr>::Err
fn try_from(string: &'a str) -> Result<T, <T as TryFrom<&'a str>>::Err>
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
U: TryFrom<T>,