metadata_gen

Function extract_keywords

Source
pub fn extract_keywords(metadata: &HashMap<String, String>) -> Vec<String>
Expand description

Extracts keywords from the metadata.

This function looks for a “keywords” key in the metadata and splits its value into a vector of strings.

§Arguments

  • metadata - A reference to a HashMap containing the metadata.

§Returns

A vector of strings representing the keywords.