pub fn combine_security_requirements(
reqs: &SecurityRequirements,
other: &SecurityRequirements,
) -> SecurityRequirements
Expand description
Given two SecurityRequirements, combines both into requirements as strict as either. A stricter SecurityRequirements is defined as:
- Authentication required is stricter than not.
- Secure Connections required is stricter than not.