pub struct ErrorObjectBuilder { /* private fields */ }Implementations§
Source§impl ErrorObjectBuilder
impl ErrorObjectBuilder
pub fn id<I: ToString>(self, id: I) -> Self
pub fn links<L: Into<LinksBuilder>>(self, links: L) -> Self
pub fn status<S: Into<HttpStatus>>(self, status: S) -> Self
pub fn code<C: ToString>(self, code: C) -> Self
pub fn title<T: ToString>(self, title: T) -> Self
pub fn detail<D: ToString>(self, detail: D) -> Self
pub fn source<S: Into<ErrorSourceBuilder>>(self, source: S) -> Self
pub fn meta<M: Into<MetaOrAttrsBuilder>>(self, meta: M) -> Self
pub fn link<N: ToString, L: Into<LinkBuilder>>(self, name: N, link: L) -> Self
pub fn pointer<P: ToString>(self, pointer: P) -> Self
pub fn parameter<P: ToString>(self, parameter: P) -> Self
pub fn meta1<N: ToString, V: Into<Value>>(self, name: N, meta1: V) -> Self
Trait Implementations§
Source§impl Builder<'_> for ErrorObjectBuilder
impl Builder<'_> for ErrorObjectBuilder
type Entity = ErrorObject
fn finish(self) -> Result<Self::Entity, BuildErrors>
fn expect(self, msg: &str) -> Self::Entity
fn expect_err(self, msg: &str) -> BuildErrors
fn unwrap(self) -> Self::Entity
fn unwrap_err(self) -> BuildErrors
Source§impl Clone for ErrorObjectBuilder
impl Clone for ErrorObjectBuilder
Source§fn clone(&self) -> ErrorObjectBuilder
fn clone(&self) -> ErrorObjectBuilder
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ErrorObjectBuilder
impl Debug for ErrorObjectBuilder
Source§impl Default for ErrorObjectBuilder
impl Default for ErrorObjectBuilder
Source§fn default() -> ErrorObjectBuilder
fn default() -> ErrorObjectBuilder
Returns the “default value” for a type. Read more
Source§impl From<ErrorObject> for ErrorObjectBuilder
impl From<ErrorObject> for ErrorObjectBuilder
Source§fn from(error_object: ErrorObject) -> Self
fn from(error_object: ErrorObject) -> Self
Converts to this type from the input type.
Source§impl PartialEq for ErrorObjectBuilder
impl PartialEq for ErrorObjectBuilder
impl Eq for ErrorObjectBuilder
impl StructuralPartialEq for ErrorObjectBuilder
Auto Trait Implementations§
impl Freeze for ErrorObjectBuilder
impl RefUnwindSafe for ErrorObjectBuilder
impl Send for ErrorObjectBuilder
impl Sync for ErrorObjectBuilder
impl Unpin for ErrorObjectBuilder
impl UnwindSafe for ErrorObjectBuilder
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.