pub struct DocExample {
pub code: &'static str,
pub example: &'static str,
}Expand description
A documented example response body (shared by success / error).
Fields§
§code: &'static strHTTP status code, kept as a string to align with the PHP version.
example: &'static strRaw response body; stored verbatim, not validated as JSON.
Trait Implementations§
Source§impl Clone for DocExample
impl Clone for DocExample
Source§fn clone(&self) -> DocExample
fn clone(&self) -> DocExample
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 moreAuto Trait Implementations§
impl Freeze for DocExample
impl RefUnwindSafe for DocExample
impl Send for DocExample
impl Sync for DocExample
impl Unpin for DocExample
impl UnsafeUnpin for DocExample
impl UnwindSafe for DocExample
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