pub struct Tag {
pub name: String,
pub summary: Option<String>,
pub description: Option<String>,
pub external_docs: Option<ExternalDocs>,
pub parent: Option<String>,
pub kind: Option<String>,
pub extensions: Vec<(String, ValueRef)>,
}Expand description
Top-level tags[] entry. Generators surface description and
summary as group-level docs and use parent (3.2) to render
nested operation menus.
Fields§
§name: String§summary: Option<String>OAS 3.2 summary — short single-line label.
description: Option<String>§external_docs: Option<ExternalDocs>§parent: Option<String>OAS 3.2 parent — name of another tag this one nests under.
The parser warns and drops the parent reference (rather than the
entire tag) if it doesn’t match a declared tag.
kind: Option<String>OAS 3.2 kind — free-form classifier (e.g. "audience",
"channel"). Generators that don’t model it can ignore.
extensions: Vec<(String, ValueRef)>Trait Implementations§
Source§impl<'de> Deserialize<'de> for Tag
impl<'de> Deserialize<'de> for Tag
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 Tag
Auto Trait Implementations§
impl Freeze for Tag
impl RefUnwindSafe for Tag
impl Send for Tag
impl Sync for Tag
impl Unpin for Tag
impl UnsafeUnpin for Tag
impl UnwindSafe for Tag
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