pub struct TagConfig {
pub allow_other_tags: bool,
pub policy: EndpointTagPolicy,
pub tags: HashMap<String, TagDetails>,
}Expand description
Configuration used describe OpenAPI tags and to validate per-endpoint tags. Consumers may use this ensure that–for example–endpoints pick a tag from a known set, or that each endpoint has at least one tag.
Fields§
Are endpoints allowed to use tags not specified in this config?
policy: EndpointTagPolicyTrait Implementations§
Source§impl<'de> Deserialize<'de> for TagConfig
impl<'de> Deserialize<'de> for TagConfig
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
Auto Trait Implementations§
impl Freeze for TagConfig
impl RefUnwindSafe for TagConfig
impl Send for TagConfig
impl Sync for TagConfig
impl Unpin for TagConfig
impl UnwindSafe for TagConfig
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