pub struct TagConfig {
pub allow_other_tags: bool,
pub endpoint_tag_policy: EndpointTagPolicy,
pub tag_definitions: 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?
endpoint_tag_policy: EndpointTagPolicy
§tag_definitions: HashMap<String, TagDetails>
Trait 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