pub struct GeneratedResponseDescriptor {
pub content_type: Option<&'static str>,
pub is_error: bool,
pub schema_name: Option<&'static str>,
pub status: u16,
}Expand description
Generated response descriptor metadata.
Fields§
§content_type: Option<&'static str>Preferred response content type.
is_error: boolWhether the response represents an error status.
schema_name: Option<&'static str>Referenced schema name when present.
status: u16HTTP status code documented for the response.
Trait Implementations§
Source§impl Clone for GeneratedResponseDescriptor
impl Clone for GeneratedResponseDescriptor
Source§fn clone(&self) -> GeneratedResponseDescriptor
fn clone(&self) -> GeneratedResponseDescriptor
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for GeneratedResponseDescriptor
impl Debug for GeneratedResponseDescriptor
impl Copy for GeneratedResponseDescriptor
impl Eq for GeneratedResponseDescriptor
impl StructuralPartialEq for GeneratedResponseDescriptor
Auto Trait Implementations§
impl Freeze for GeneratedResponseDescriptor
impl RefUnwindSafe for GeneratedResponseDescriptor
impl Send for GeneratedResponseDescriptor
impl Sync for GeneratedResponseDescriptor
impl Unpin for GeneratedResponseDescriptor
impl UnsafeUnpin for GeneratedResponseDescriptor
impl UnwindSafe for GeneratedResponseDescriptor
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compares
self with key and returns true if they are equal.