[−][src]Enum conjure_error::ErrorCode
The broad category of a Conjure error.
When an error is transmitted over HTTP, this determines the response's status code.
Variants
Implementations
impl ErrorCode[src]
impl ErrorCode[src]
pub fn status_code(&self) -> u16[src]
Returns the HTTP status code associated with the error code.
Trait Implementations
impl Clone for ErrorCode[src]
impl Debug for ErrorCode[src]
impl<'de> Deserialize<'de> for ErrorCode[src]
fn deserialize<D>(d: D) -> Result<ErrorCode, D::Error> where
D: Deserializer<'de>, [src]
D: Deserializer<'de>,
impl Display for ErrorCode[src]
impl Eq for ErrorCode[src]
impl FromPlain for ErrorCode[src]
type Err = ParseEnumError
The error type returned when parsing fails.
fn from_plain(v: &str) -> Result<ErrorCode, ParseEnumError>[src]
impl FromStr for ErrorCode[src]
type Err = ParseEnumError
The associated error which can be returned from parsing.
fn from_str(v: &str) -> Result<ErrorCode, ParseEnumError>[src]
impl Hash for ErrorCode[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 ErrorCode[src]
fn cmp(&self, other: &ErrorCode) -> Ordering[src]
#[must_use]pub fn max(self, other: Self) -> Self1.21.0[src]
#[must_use]pub fn min(self, other: Self) -> Self1.21.0[src]
#[must_use]pub fn clamp(self, min: Self, max: Self) -> Self1.50.0[src]
impl PartialEq<ErrorCode> for ErrorCode[src]
fn eq(&self, other: &ErrorCode) -> bool[src]
#[must_use]pub fn ne(&self, other: &Rhs) -> bool1.0.0[src]
impl PartialOrd<ErrorCode> for ErrorCode[src]
fn partial_cmp(&self, other: &ErrorCode) -> Option<Ordering>[src]
#[must_use]pub fn lt(&self, other: &Rhs) -> bool1.0.0[src]
#[must_use]pub fn le(&self, other: &Rhs) -> bool1.0.0[src]
#[must_use]pub fn gt(&self, other: &Rhs) -> bool1.0.0[src]
#[must_use]pub fn ge(&self, other: &Rhs) -> bool1.0.0[src]
impl Plain for ErrorCode[src]
impl Serialize for ErrorCode[src]
impl StructuralEq for ErrorCode[src]
impl StructuralPartialEq for ErrorCode[src]
Auto Trait Implementations
impl RefUnwindSafe for ErrorCode[src]
impl Send for ErrorCode[src]
impl Sync for ErrorCode[src]
impl Unpin for ErrorCode[src]
impl UnwindSafe for ErrorCode[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> ToPlain for T where
T: Plain + ?Sized, [src]
T: Plain + ?Sized,
impl<T> ToString for T where
T: Display + ?Sized, [src]
T: Display + ?Sized,
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>,