pub enum LinkTarget {
Uri(String),
Id(String),
}Expand description
How a link identifies the operation it points at.
An enum rather than two Option fields, for the reason
SecurityScheme is one: an
unusable combination that cannot be spelled needs no rule to reject it. A
link naming neither target points nowhere, and one naming both points at two
operations without saying which wins.
Variants§
Uri(String)
A URI reference to the target operation, written to operationRef.
Named for what it holds rather than for its field: a variant called
Ref would read as the Ref this crate already has, which
is a Reference Object and something else entirely.
Id(String)
The operation_id of the target,
written to operationId.
Trait Implementations§
Source§impl Clone for LinkTarget
impl Clone for LinkTarget
Source§impl Debug for LinkTarget
impl Debug for LinkTarget
impl Eq for LinkTarget
Source§impl PartialEq for LinkTarget
impl PartialEq for LinkTarget
impl StructuralPartialEq for LinkTarget
Auto Trait Implementations§
impl Freeze for LinkTarget
impl RefUnwindSafe for LinkTarget
impl Send for LinkTarget
impl Sync for LinkTarget
impl Unpin for LinkTarget
impl UnsafeUnpin for LinkTarget
impl UnwindSafe for LinkTarget
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.