pub struct ProblemDetailsSchemaBuilder<S: State = Empty> { /* private fields */ }Expand description
Use builder syntax to set the inputs and finish with build().
Implementations§
Source§impl<S: State> ProblemDetailsSchemaBuilder<S>
impl<S: State> ProblemDetailsSchemaBuilder<S>
Sourcepub fn build(self) -> ProblemDetailsSchemawhere
S: IsComplete,
pub fn build(self) -> ProblemDetailsSchemawhere
S: IsComplete,
Finish building and return the requested object
Sourcepub fn detail(self, value: String) -> ProblemDetailsSchemaBuilder<SetDetail<S>>where
S::Detail: IsUnset,
pub fn detail(self, value: String) -> ProblemDetailsSchemaBuilder<SetDetail<S>>where
S::Detail: IsUnset,
Sourcepub fn maybe_detail(
self,
value: Option<String>,
) -> ProblemDetailsSchemaBuilder<SetDetail<S>>where
S::Detail: IsUnset,
pub fn maybe_detail(
self,
value: Option<String>,
) -> ProblemDetailsSchemaBuilder<SetDetail<S>>where
S::Detail: IsUnset,
Sourcepub fn status(self, value: i32) -> ProblemDetailsSchemaBuilder<SetStatus<S>>where
S::Status: IsUnset,
pub fn status(self, value: i32) -> ProblemDetailsSchemaBuilder<SetStatus<S>>where
S::Status: IsUnset,
Required.
HTTP status code of the response, repeated here for convenience.
Sourcepub fn title(self, value: String) -> ProblemDetailsSchemaBuilder<SetTitle<S>>where
S::Title: IsUnset,
pub fn title(self, value: String) -> ProblemDetailsSchemaBuilder<SetTitle<S>>where
S::Title: IsUnset,
Required.
Short, human-readable summary of the problem type. Does not vary
between occurrences of the same type.
Sourcepub fn type_(self, value: String) -> ProblemDetailsSchemaBuilder<SetType<S>>where
S::Type: IsUnset,
pub fn type_(self, value: String) -> ProblemDetailsSchemaBuilder<SetType<S>>where
S::Type: IsUnset,
Required.
A URI reference identifying the problem type. Stable across occurrences of the same error, so callers can match on it.
Auto Trait Implementations§
impl<S> Freeze for ProblemDetailsSchemaBuilder<S>
impl<S> RefUnwindSafe for ProblemDetailsSchemaBuilder<S>
impl<S> Send for ProblemDetailsSchemaBuilder<S>
impl<S> Sync for ProblemDetailsSchemaBuilder<S>
impl<S> Unpin for ProblemDetailsSchemaBuilder<S>
impl<S> UnsafeUnpin for ProblemDetailsSchemaBuilder<S>
impl<S> UnwindSafe for ProblemDetailsSchemaBuilder<S>
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