Struct conjure_error::SerializableError
source · pub struct SerializableError { /* private fields */ }Expand description
The JSON-serializable representation of an error.
Implementations§
source§impl SerializableError
impl SerializableError
sourcepub fn error_code(&self) -> &ErrorCode
pub fn error_code(&self) -> &ErrorCode
The broad category of the error.
When transmitted over HTTP, this determines the response’s status code.
sourcepub fn error_name(&self) -> &str
pub fn error_name(&self) -> &str
The error’s name.
The name is made up of a namespace and more specific error name, separated by a :.
sourcepub fn error_instance_id(&self) -> Uuid
pub fn error_instance_id(&self) -> Uuid
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.
sourcepub fn parameters(&self) -> &BTreeMap<String, String>
pub fn parameters(&self) -> &BTreeMap<String, String>
Parameters providing more information about the error.
Trait Implementations§
source§impl Clone for SerializableError
impl Clone for SerializableError
source§fn clone(&self) -> SerializableError
fn clone(&self) -> SerializableError
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl Debug for SerializableError
impl Debug for SerializableError
source§impl<'de> Deserialize<'de> for SerializableError
impl<'de> Deserialize<'de> for SerializableError
source§fn deserialize<D>(d: D) -> Result<SerializableError, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(d: D) -> Result<SerializableError, D::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl From<SerializableError> for Builder
impl From<SerializableError> for Builder
source§fn from(_v: SerializableError) -> Builder
fn from(_v: SerializableError) -> Builder
Converts to this type from the input type.
source§impl Hash for SerializableError
impl Hash for SerializableError
source§impl Ord for SerializableError
impl Ord for SerializableError
source§fn cmp(&self, other: &SerializableError) -> Ordering
fn cmp(&self, other: &SerializableError) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq<SerializableError> for SerializableError
impl PartialEq<SerializableError> for SerializableError
source§fn eq(&self, other: &SerializableError) -> bool
fn eq(&self, other: &SerializableError) -> bool
source§impl PartialOrd<SerializableError> for SerializableError
impl PartialOrd<SerializableError> for SerializableError
source§fn partial_cmp(&self, other: &SerializableError) -> Option<Ordering>
fn partial_cmp(&self, other: &SerializableError) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self and other) and is used by the <=
operator. Read more