pub struct ProblemDef {
pub slug: &'static str,
pub status: StatusCode,
pub title: &'static str,
pub description: &'static str,
}Expand description
Definition of one problem slug.
Fields§
§slug: &'static strLast path segment of the type URI.
status: StatusCode§title: &'static strShort, stable human title (RFC 9457 title).
description: &'static strOne-line description for reviewers; not part of the response.
Trait Implementations§
Source§impl Clone for ProblemDef
impl Clone for ProblemDef
Source§fn clone(&self) -> ProblemDef
fn clone(&self) -> ProblemDef
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for ProblemDef
Auto Trait Implementations§
impl Freeze for ProblemDef
impl RefUnwindSafe for ProblemDef
impl Send for ProblemDef
impl Sync for ProblemDef
impl Unpin for ProblemDef
impl UnsafeUnpin for ProblemDef
impl UnwindSafe for ProblemDef
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