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

allow_other_tags: bool

Are endpoints allowed to use tags not specified in this config?

endpoint_tag_policy: EndpointTagPolicytag_definitions: HashMap<String, TagDetails>

Trait Implementations

Formats the value using the given formatter. Read more

Returns the “default value” for a type. Read more

Deserialize this value from the given Serde deserializer. Read more

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more