pub enum Link {
Ref {
operation_ref: String,
parameters: BTreeMap<String, String>,
description: Option<String>,
server: Option<Server>,
extensions: BTreeMap<String, Value>,
},
Id {
operation_id: String,
parameters: BTreeMap<String, String>,
description: Option<String>,
server: Option<Server>,
extensions: BTreeMap<String, Value>,
},
}Expand description
The Link object represents a possible design-time link for a response.
Variants§
Ref
A relative or absolute reference to an OAS operation.
Fields
Id
The name of an existing, resolvable OAS operation.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Link
impl<'de> Deserialize<'de> for Link
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
impl StructuralPartialEq for Link
Auto Trait Implementations§
impl Freeze for Link
impl RefUnwindSafe for Link
impl Send for Link
impl Sync for Link
impl Unpin for Link
impl UnsafeUnpin for Link
impl UnwindSafe for Link
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