[−][src]Struct conjure_error::SerializableError
The JSON-serializable representation of an error.
Implementations
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 Clone for SerializableError
[src]
fn clone(&self) -> SerializableError
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for SerializableError
[src]
impl<'de> Deserialize<'de> for SerializableError
[src]
fn deserialize<D>(d: D) -> Result<SerializableError, D::Error> where
D: Deserializer<'de>,
[src]
D: Deserializer<'de>,
impl Eq for SerializableError
[src]
impl ErrorType for SerializableError
[src]
fn code(&self) -> ErrorCode
[src]
fn name(&self) -> &str
[src]
fn instance_id(&self) -> Option<Uuid>
[src]
fn safe_args(&self) -> &'static [&'static str]
[src]
fn with_instance_id(self, instance_id: Uuid) -> WithInstanceId<Self> where
Self: Sized,
[src]
Self: Sized,
impl From<SerializableError> for Builder
[src]
fn from(_v: SerializableError) -> Builder
[src]
impl Hash for SerializableError
[src]
fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
pub fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl Ord for SerializableError
[src]
fn cmp(&self, other: &SerializableError) -> Ordering
[src]
#[must_use]pub fn max(self, other: Self) -> Self
1.21.0[src]
#[must_use]pub fn min(self, other: Self) -> Self
1.21.0[src]
#[must_use]pub fn clamp(self, min: Self, max: Self) -> Self
1.50.0[src]
impl PartialEq<SerializableError> for SerializableError
[src]
fn eq(&self, other: &SerializableError) -> bool
[src]
fn ne(&self, other: &SerializableError) -> bool
[src]
impl PartialOrd<SerializableError> for SerializableError
[src]
fn partial_cmp(&self, other: &SerializableError) -> Option<Ordering>
[src]
fn lt(&self, other: &SerializableError) -> bool
[src]
fn le(&self, other: &SerializableError) -> bool
[src]
fn gt(&self, other: &SerializableError) -> bool
[src]
fn ge(&self, other: &SerializableError) -> bool
[src]
impl Serialize for SerializableError
[src]
impl StructuralEq for SerializableError
[src]
impl StructuralPartialEq for SerializableError
[src]
Auto Trait Implementations
impl RefUnwindSafe for SerializableError
[src]
impl Send for SerializableError
[src]
impl Sync for SerializableError
[src]
impl Unpin for SerializableError
[src]
impl UnwindSafe for SerializableError
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,