pub struct Tag {
pub name: String,
pub summary: Option<String>,
pub description: Option<String>,
pub parent: Option<String>,
pub kind: Option<String>,
pub external_docs: Option<ExternalDocumentation>,
pub extensions: Extensions,
}Expand description
Metadata for a single tag used by Operation::tags.
Tag names must be unique across a document. In Kynos a tag is a type rather than a string, so uniqueness is a property of the type system rather than something checked after the fact.
Fields§
§name: StringThe name of the tag. Operations refer to it by this value.
summary: Option<String>A short summary of the tag.
Introduced in OpenAPI 3.2.
description: Option<String>A description for the tag. CommonMark syntax may be used.
parent: Option<String>The name of a tag that this tag nests under.
Introduced in OpenAPI 3.2. The named tag must exist, and the parent
chain must not contain a cycle; crate::validate checks both.
kind: Option<String>A machine-readable categorization of what sort of tag this is.
Introduced in OpenAPI 3.2. Any string is permitted; nav, badge and
audience are the common registered values.
external_docs: Option<ExternalDocumentation>Additional external documentation for this tag.
extensions: ExtensionsSpecification extensions.
Implementations§
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>,
impl Eq for Tag
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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
key and return true if they are equal.