Function content_blocker::parse_list
[−]
[src]
pub fn parse_list(body: &str) -> Result<RuleList, Error>
Parse a string containing a JSON representation of a content blocker list. Returns a vector of parsed rules, or an error representing the nature of the invalid input. Any rules missing required fields will be silently ignored.