[−][src]Struct conjure_error::serializable_error::Builder
A builder for the SerializableError type.
Implementations
impl Builder[src]
pub fn error_code(&mut self, error_code: ErrorCode) -> &mut Self[src]
The broad category of the error.
When transmitted over HTTP, this determines the response's status code.
Required.
pub fn error_name<T>(&mut self, error_name: T) -> &mut Self where
T: Into<String>, [src]
T: Into<String>,
The error's name.
The name is made up of a namespace and more specific error name, separated by a :.
Required.
pub fn error_instance_id(&mut self, error_instance_id: Uuid) -> &mut Self[src]
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.
pub fn parameters<T>(&mut self, parameters: T) -> &mut Self where
T: IntoIterator<Item = (String, String)>, [src]
T: IntoIterator<Item = (String, String)>,
Parameters providing more information about the error.
pub fn extend_parameters<T>(&mut self, parameters: T) -> &mut Self where
T: IntoIterator<Item = (String, String)>, [src]
T: IntoIterator<Item = (String, String)>,
Parameters providing more information about the error.
pub fn insert_parameters<K, V>(&mut self, key: K, value: V) -> &mut Self where
K: Into<String>,
V: Into<String>, [src]
K: Into<String>,
V: Into<String>,
Parameters providing more information about the error.
pub fn build(&self) -> SerializableError[src]
Trait Implementations
impl Clone for Builder[src]
impl Debug for Builder[src]
impl Default for Builder[src]
impl From<SerializableError> for Builder[src]
fn from(_v: SerializableError) -> Builder[src]
Auto Trait Implementations
impl RefUnwindSafe for Builder[src]
impl Send for Builder[src]
impl Sync for Builder[src]
impl Unpin for Builder[src]
impl UnwindSafe for Builder[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T[src]
impl<T> From<T> for T[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone, [src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T[src]
pub fn clone_into(&self, target: &mut T)[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,