[][src]Struct conjure_error::serializable_error::SerializableError

pub struct SerializableError { /* fields omitted */ }

The JSON-serializable representation of an error.

Methods

impl SerializableError[src]

pub fn builder() -> Builder[src]

Returns a new builder.

pub fn error_code(&self) -> &ErrorCode[src]

The broad category of the error.

When transmitted over HTTP, this determines the response's status code.

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

The error's name.

The name is made up of a namespace and more specific error name, separated by a :.

pub fn error_instance_id(&self) -> Uuid[src]

A unique identifier for this error instance.

This can be used to correlate reporting about the error as it transfers between components of a distributed system.

pub fn parameters(&self) -> &BTreeMap<String, String>[src]

Parameters providing more information about the error.

Trait Implementations

impl ErrorType for SerializableError[src]

fn with_instance_id(self, instance_id: Uuid) -> WithInstanceId<Self> where
    Self: Sized
[src]

Wraps the error in another that overrides its instance ID.

impl PartialEq<SerializableError> for SerializableError[src]

impl From<SerializableError> for Builder[src]

impl Clone for SerializableError[src]

fn clone_from(&mut self, source: &Self)1.0.0[src]

Performs copy-assignment from source. Read more

impl Ord for SerializableError[src]

fn max(self, other: Self) -> Self1.21.0[src]

Compares and returns the maximum of two values. Read more

fn min(self, other: Self) -> Self1.21.0[src]

Compares and returns the minimum of two values. Read more

fn clamp(self, min: Self, max: Self) -> Self[src]

🔬 This is a nightly-only experimental API. (clamp)

Restrict a value to a certain interval. Read more

impl Eq for SerializableError[src]

impl PartialOrd<SerializableError> for SerializableError[src]

impl Debug for SerializableError[src]

impl Hash for SerializableError[src]

fn hash_slice<H>(data: &[Self], state: &mut H) where
    H: Hasher
1.3.0[src]

Feeds a slice of this type into the given [Hasher]. Read more

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

impl Serialize for SerializableError[src]

Auto Trait Implementations

Blanket Implementations

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> Into<U> for T where
    U: From<T>, 
[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.

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]