Function okapi::merge::merge_paths
source · pub fn merge_paths<S: Display>(
s1: &mut Map<String, PathItem>,
path_prefix: &S,
s2: &Map<String, PathItem>
) -> Result<(), MergeError>
Expand description
Merge Map<String, PathItem>
/&Map<String, PathItem>
:
Merge together. If key already exists, use s1 version.
Use path_prefix
in order to specify the mounting points for the routes.