pub struct Response<S> {
pub description: Option<String>,
pub schema: Option<S>,
pub headers: BTreeMap<String, Header>,
}
Expand description
Fields§
§description: Option<String>
§schema: Option<S>
§headers: BTreeMap<String, Header>
Trait Implementations§
source§impl<'de, S> Deserialize<'de> for Response<S>where
S: Deserialize<'de>,
impl<'de, S> Deserialize<'de> for Response<S>where
S: Deserialize<'de>,
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl From<Response<DefaultSchemaRaw>> for ReferenceOr<Response>
impl From<Response<DefaultSchemaRaw>> for ReferenceOr<Response>
source§fn from(v2: DefaultResponseRaw) -> Self
fn from(v2: DefaultResponseRaw) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl<S> Freeze for Response<S>where
S: Freeze,
impl<S> RefUnwindSafe for Response<S>where
S: RefUnwindSafe,
impl<S> Send for Response<S>where
S: Send,
impl<S> Sync for Response<S>where
S: Sync,
impl<S> Unpin for Response<S>where
S: Unpin,
impl<S> UnwindSafe for Response<S>where
S: UnwindSafe,
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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)