Struct ErrorBuilder

Source
pub struct ErrorBuilder<I, C, M> { /* private fields */ }

Implementations§

Source§

impl<C, M> ErrorBuilder<IdNone, C, M>

Source

pub fn id<T: Into<JId>>(self, i: T) -> ErrorBuilder<Id, C, M>

Source§

impl<I, M> ErrorBuilder<I, CodeNone, M>

Source

pub fn code(self, c: i32) -> ErrorBuilder<I, Code, M>

Source§

impl<I, C> ErrorBuilder<I, C, MessageNone>

Source

pub fn message(self, m: &str) -> ErrorBuilder<I, C, Message>

Source§

impl<I> ErrorBuilder<I, CodeNone, MessageNone>

Source§

impl<I, C, M> ErrorBuilder<I, C, M>

Source

pub fn data(self, p: Value) -> ErrorBuilder<I, C, M>

Source

pub fn data_serialize<T: Serialize>( self, p: T, ) -> Result<ErrorBuilder<I, C, M>, Error>

Source

pub fn data_str(self, p: &str) -> Result<ErrorBuilder<I, C, M>, Error>

Source§

impl ErrorBuilder<Id, Code, Message>

Source

pub fn build(self) -> Response

Auto Trait Implementations§

§

impl<I, C, M> Freeze for ErrorBuilder<I, C, M>
where I: Freeze, C: Freeze, M: Freeze,

§

impl<I, C, M> RefUnwindSafe for ErrorBuilder<I, C, M>

§

impl<I, C, M> Send for ErrorBuilder<I, C, M>
where I: Send, C: Send, M: Send,

§

impl<I, C, M> Sync for ErrorBuilder<I, C, M>
where I: Sync, C: Sync, M: Sync,

§

impl<I, C, M> Unpin for ErrorBuilder<I, C, M>
where I: Unpin, C: Unpin, M: Unpin,

§

impl<I, C, M> UnwindSafe for ErrorBuilder<I, C, M>
where I: UnwindSafe, C: UnwindSafe, M: UnwindSafe,

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

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

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.