pub struct Link {
pub operation_ref: Option<String>,
pub operation_id: Option<String>,
pub parameters: Vec<(String, ValueRef)>,
pub request_body: Option<ValueRef>,
pub description: Option<String>,
pub server: Option<Server>,
pub extensions: Vec<(String, ValueRef)>,
}Expand description
OAS Link Object — HATEOAS-style “given this response, here’s how to
call the next operation”. Carried in a Vec<(String, Link)> on
Response.links (named, ordered).
Per OAS, operation_ref and operation_id are mutually exclusive.
The parser keeps the first one declared if both appear.
parameters and request_body carry OAS runtime expressions
(e.g. $response.body#/id). The IR stores them as ValueRefs
indexing into Ir::values; compound expressions are now
preserved via the value pool.
Fields§
§operation_ref: Option<String>§operation_id: Option<String>§parameters: Vec<(String, ValueRef)>Map of parameter name → runtime expression / scalar literal. Order is preserved.
request_body: Option<ValueRef>§description: Option<String>§server: Option<Server>Per-link server override (rare).
extensions: Vec<(String, ValueRef)>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