pub struct Link {
pub operation_ref: Option<String>,
pub operation_id: Option<String>,
pub parameters: Option<BTreeMap<String, Value>>,
pub request_body: Option<Value>,
pub description: Option<String>,
pub server: Option<Server>,
}
Expand description
§Link
The Link object represents a possible design-time link for a response.
Fields§
§operation_ref: Option<String>
A relative or absolute URI reference to an OAS operation.
operation_id: Option<String>
The name of an existing, resolvable OAS operation, as defined with a unique operationId. This field is mutually exclusive of the operationRef field.
parameters: Option<BTreeMap<String, Value>>
A map representing parameters to pass to an operation as specified with operationId or identified via operationRef.
request_body: Option<Value>
A literal value or {expression} to use as a request body when calling the target operation.
description: Option<String>
A description of the link.
server: Option<Server>
A server object to be used by the target 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 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