[][src]Struct gm_types::replies::BadRequestReply

pub struct BadRequestReply {
    pub errcode: String,
    pub error: Option<String>,
}

A 'standard error response' from a Matrix homeserver.

Fields

errcode: String

Unique string describing this kind of error.

These error codes should have their namespace first in ALL CAPS, followed by a single _ to ease separating the namespace from the error code. For example, if there was a custom namespace com.mydomain.here, and a FORBIDDEN code, the error code should look like COM.MYDOMAIN.HERE_FORBIDDEN.

error: Option<String>

Human-readable error message.

Trait Implementations

impl Clone for BadRequestReply[src]

impl Debug for BadRequestReply[src]

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

impl Serialize for BadRequestReply[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<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.