[][src]Struct krill::daemon::ca::RouteAuthorization

pub struct RouteAuthorization(_);

This type defines a prefix and optional maximum length (other than the prefix length) which is to be authorized for the given origin ASN.

Methods

impl RouteAuthorization[src]

pub fn new(definition: RoaDefinition) -> Self[src]

Methods from Deref<Target = RoaDefinition>

pub fn asn(&self) -> AsNumber[src]

pub fn prefix(&self) -> TypedPrefix[src]

pub fn max_length(&self) -> Option<u8>[src]

Trait Implementations

impl AsRef<RoaDefinition> for RouteAuthorization[src]

impl<'_> From<&'_ RouteAuthorization> for ObjectName[src]

impl From<RoaDefinition> for RouteAuthorization[src]

impl Clone for RouteAuthorization[src]

impl Copy for RouteAuthorization[src]

impl Eq for RouteAuthorization[src]

impl PartialEq<RouteAuthorization> for RouteAuthorization[src]

impl Deref for RouteAuthorization[src]

type Target = RoaDefinition

The resulting type after dereferencing.

impl Debug for RouteAuthorization[src]

impl Display for RouteAuthorization[src]

impl Hash for RouteAuthorization[src]

impl StructuralPartialEq for RouteAuthorization[src]

impl StructuralEq for RouteAuthorization[src]

impl Serialize for RouteAuthorization[src]

We use RouteAuthorization as (json) map keys and therefore we need it to be serializable to a single simple string.

impl<'de> Deserialize<'de> for RouteAuthorization[src]

We use RouteAuthorization as (json) map keys and therefore we need it to be deserializable from a single simple string.

Auto Trait Implementations

Blanket Implementations

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[src]

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<T> DeserializeOwned for T where
    T: Deserialize<'de>, 
[src]

impl<Q, K> Equivalent<K> for Q where
    K: Borrow<Q> + ?Sized,
    Q: Eq + ?Sized
[src]

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

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

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