pub struct ErrorPageData {
    pub url: String,
    pub status: u16,
    pub err: String,
}
Expand description

A representation of an error page, particularly for storage in transit so that server-side rendered error pages can be hydrated on the client-side.

Fields

url: String

The URL for the error.

status: u16

THe HTTP status code that corresponds with the error.

err: String

The actual error message as a string.

Trait Implementations

Formats the value using the given formatter. Read more

Deserialize this value from the given Serde deserializer. Read more

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.