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 duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const 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 for ResponseOrRef
impl PartialEq for ResponseOrRef
Source§impl Serialize for ResponseOrRef
impl Serialize for ResponseOrRef
impl StructuralPartialEq for ResponseOrRef
Auto Trait Implementations§
impl Freeze for ResponseOrRef
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