pub struct ErrorDefinitionBuilder { /* private fields */ }Expand description
Represents the service used to build ErrorDefinition
Implementations§
Source§impl ErrorDefinitionBuilder
impl ErrorDefinitionBuilder
Sourcepub fn with_status(&mut self, status: Value) -> &mut Self
pub fn with_status(&mut self, status: Value) -> &mut Self
Sets the error’s status
Sourcepub fn with_title(&mut self, title: &str) -> &mut Self
pub fn with_title(&mut self, title: &str) -> &mut Self
Sets the error’s title
Sourcepub fn with_detail(&mut self, detail: &str) -> &mut Self
pub fn with_detail(&mut self, detail: &str) -> &mut Self
Sets the error’s detail
Sourcepub fn with_instance(&mut self, instance: &str) -> &mut Self
pub fn with_instance(&mut self, instance: &str) -> &mut Self
Sets a reference to the component the error concerns
Sourcepub fn build(self) -> ErrorDefinition
pub fn build(self) -> ErrorDefinition
Builds the configured ErrorDefinition
Auto Trait Implementations§
impl Freeze for ErrorDefinitionBuilder
impl RefUnwindSafe for ErrorDefinitionBuilder
impl Send for ErrorDefinitionBuilder
impl Sync for ErrorDefinitionBuilder
impl Unpin for ErrorDefinitionBuilder
impl UnwindSafe for ErrorDefinitionBuilder
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