Skip to main content

parse_zone_list

Function parse_zone_list 

Source
pub fn parse_zone_list(json: &Value) -> Vec<(String, String)>
Expand description

Parse a Cloudflare GET /zones response into (zone_id, zone_name) pairs.

Iterates json["result"] (the array of zones) and collects each entry’s id + name. Entries missing either field are skipped rather than failing the whole listing.