Enum openapi_schema::ResponseOrRef
source · pub enum ResponseOrRef {
Response {
description: String,
schema: Option<Schema>,
headers: Option<BTreeMap<String, Header>>,
examples: Option<BTreeMap<String, Value>>,
extensions: Extensions,
},
Ref {
reference: String,
},
}
Variants§
Trait Implementations§
source§impl Clone for ResponseOrRef
impl Clone for ResponseOrRef
source§fn clone(&self) -> ResponseOrRef
fn clone(&self) -> ResponseOrRef
Returns a copy 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 ResponseOrRef
impl Debug for ResponseOrRef
source§impl<'de> Deserialize<'de> for ResponseOrRef
impl<'de> Deserialize<'de> for ResponseOrRef
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 PartialEq<ResponseOrRef> for ResponseOrRef
impl PartialEq<ResponseOrRef> for ResponseOrRef
source§fn eq(&self, other: &ResponseOrRef) -> bool
fn eq(&self, other: &ResponseOrRef) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for ResponseOrRef
impl Serialize for ResponseOrRef
impl StructuralPartialEq for ResponseOrRef
Auto Trait Implementations§
impl RefUnwindSafe for ResponseOrRef
impl Send for ResponseOrRef
impl Sync for ResponseOrRef
impl Unpin for ResponseOrRef
impl UnwindSafe for ResponseOrRef
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