pub struct Builder { /* private fields */ }
Expand description

A builder for the SerializableError type.

Implementations

The broad category of the error.

When transmitted over HTTP, this determines the response’s status code.

Required.

The error’s name.

The name is made up of a namespace and more specific error name, separated by a :.

Required.

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.

Required.

Parameters providing more information about the error.

Parameters providing more information about the error.

Parameters providing more information about the error.

Constructs a new instance of the type.

Panics

Panics if a required field was not set.

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Returns the “default value” for a type. Read more

Performs the conversion.

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 resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

Uses borrowed data to replace owned data, usually by cloning. Read more

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.