Struct conjure_error::SerializableError
source · pub struct SerializableError { /* private fields */ }Expand description
The JSON-serializable representation of an error.
Implementations
sourceimpl 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
sourceimpl Clone for SerializableError
impl Clone for SerializableError
sourcefn clone(&self) -> SerializableError
fn clone(&self) -> SerializableError
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresourceimpl Debug for SerializableError
impl Debug for SerializableError
sourceimpl<'de> Deserialize<'de> for SerializableError
impl<'de> Deserialize<'de> for SerializableError
sourcefn 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
sourceimpl From<SerializableError> for Builder
impl From<SerializableError> for Builder
sourcefn from(_v: SerializableError) -> Builder
fn from(_v: SerializableError) -> Builder
Converts to this type from the input type.
sourceimpl Hash for SerializableError
impl Hash for SerializableError
sourceimpl Ord for SerializableError
impl Ord for SerializableError
sourcefn cmp(&self, other: &SerializableError) -> Ordering
fn cmp(&self, other: &SerializableError) -> Ordering
1.21.0 · sourcefn 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
1.21.0 · sourcefn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
1.50.0 · sourcefn clamp(self, min: Self, max: Self) -> Selfwhere
Self: Sized + PartialOrd<Self>,
fn clamp(self, min: Self, max: Self) -> Selfwhere
Self: Sized + PartialOrd<Self>,
Restrict a value to a certain interval. Read more
sourceimpl PartialEq<SerializableError> for SerializableError
impl PartialEq<SerializableError> for SerializableError
sourcefn eq(&self, other: &SerializableError) -> bool
fn eq(&self, other: &SerializableError) -> bool
sourceimpl PartialOrd<SerializableError> for SerializableError
impl PartialOrd<SerializableError> for SerializableError
sourcefn partial_cmp(&self, other: &SerializableError) -> Option<Ordering>
fn partial_cmp(&self, other: &SerializableError) -> Option<Ordering>
1.0.0 · sourcefn 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 moresourceimpl Serialize for SerializableError
impl Serialize for SerializableError
impl Eq for SerializableError
impl StructuralEq for SerializableError
impl StructuralPartialEq for SerializableError
Auto Trait Implementations
impl RefUnwindSafe for SerializableError
impl Send for SerializableError
impl Sync for SerializableError
impl Unpin for SerializableError
impl UnwindSafe for SerializableError
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more