[][src]Struct krill::commons::api::ErrorResponse

pub struct ErrorResponse { /* fields omitted */ }

Defines an error response. Codes are unique and documented here: https://rpki.readthedocs.io/en/latest/krill/pub/api.html#error-responses

Implementations

impl ErrorResponse[src]

pub fn new(label: &str, msg: impl Display) -> Self[src]

pub fn with_cause(self, cause: impl Display) -> Self[src]

pub fn with_publisher(self, publisher: &PublisherHandle) -> Self[src]

pub fn with_uri(self, uri: impl Display) -> Self[src]

pub fn with_base_uri(self, base_uri: impl Display) -> Self[src]

pub fn with_ca(self, ca: &Handle) -> Self[src]

pub fn with_parent(self, parent: &ParentHandle) -> Self[src]

pub fn with_child(self, child: &ChildHandle) -> Self[src]

pub fn with_auth(self, auth: &RouteAuthorization) -> Self[src]

pub fn with_key_identifier(self, ki: &KeyIdentifier) -> Self[src]

pub fn with_resource_class(self, class_name: &ResourceClassName) -> Self[src]

pub fn label(&self) -> &str[src]

pub fn msg(&self) -> &str[src]

Trait Implementations

impl Clone for ErrorResponse[src]

impl Debug for ErrorResponse[src]

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

impl Display for ErrorResponse[src]

impl Eq for ErrorResponse[src]

impl PartialEq<ErrorResponse> for ErrorResponse[src]

impl Serialize for ErrorResponse[src]

impl StructuralEq for ErrorResponse[src]

impl StructuralPartialEq for ErrorResponse[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

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

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

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.