[][src]Struct toornament::ToornamentError

pub struct ToornamentError {
    pub message: String,
    pub scope: ToornamentErrorScope,
    pub property_path: Option<String>,
    pub invalid_value: Option<String>,
    pub error_type: Option<ToornamentErrorType>,
}

A list of toornament service errors

Fields

message: String

Error message.

scope: ToornamentErrorScope

The scope refers to an error in a part of the HTTP request. It can be located in the query string or in the message body data.

property_path: Option<String>

Path of the error from your data which caused the error.

invalid_value: Option<String>

This property is only available when the property "property_path" is itself available. Identify the incorrect value causing the error.

error_type: Option<ToornamentErrorType>

Some data cannot be pre-validated by a client i.e. duplicate email participant. You can get the possible list for each endpoint.

Trait Implementations

impl Clone for ToornamentError[src]

impl Debug for ToornamentError[src]

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

impl Eq for ToornamentError[src]

impl Ord for ToornamentError[src]

impl PartialEq<ToornamentError> for ToornamentError[src]

impl PartialOrd<ToornamentError> for ToornamentError[src]

impl Serialize for ToornamentError[src]

impl StructuralEq for ToornamentError[src]

impl StructuralPartialEq for ToornamentError[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: Deserialize<'de>, 
[src]

impl<Q, K> Equivalent<K> for Q where
    K: Borrow<Q> + ?Sized,
    Q: Eq + ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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.