pub struct ProblemDetailsBuilder;Implementations§
Source§impl ProblemDetailsBuilder
impl ProblemDetailsBuilder
pub fn build_not_found( detail: Option<impl Into<String>>, rtype: Option<impl Into<String>>, ) -> ProblemDetails
Sourcepub fn build_bad_request(
detail: Option<impl Into<String>>,
rtype: Option<impl Into<String>>,
) -> ProblemDetails
pub fn build_bad_request( detail: Option<impl Into<String>>, rtype: Option<impl Into<String>>, ) -> ProblemDetails
pub fn build_server_error( detail: Option<impl Into<String>>, rtype: Option<impl Into<String>>, ) -> ProblemDetails
pub fn build( status: StatusCode, title: String, detail: String, rtype: Option<impl Into<String>>, instance: Option<impl Into<String>>, ) -> ProblemDetails
Auto Trait Implementations§
impl Freeze for ProblemDetailsBuilder
impl RefUnwindSafe for ProblemDetailsBuilder
impl Send for ProblemDetailsBuilder
impl Sync for ProblemDetailsBuilder
impl Unpin for ProblemDetailsBuilder
impl UnwindSafe for ProblemDetailsBuilder
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