You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: bulb.rs
    path of file: ./repos/yeelight-cli/src
    
    the code of the file until where you have to start completion: use std::fmt;

#[derive(Debug, Clone)]
pub struct Bulb {
    pub id: String,
    pub model: String,
    pub fw_ver: u16,
    pub support: String,
    pub power: bool,
    pub bright: u8,
    pub color_mode: u8,
    pub ct: u16,
    pub rgb: RGB,
    pub hue: u16,
    pub sat: u8,
    pub name: String,
    pub ip: String
}

impl Bulb {
    pub fn new(search_response: &str) -> Bulb {
        let params = ["id", "model", "fw_ver", "support", "power", "bright", "color_mode", "ct", "rgb", "hue", "sat", "name"];
        let values = params
            .iter()
            .map(|p| Bulb::get_param_value(search_response, p).unwrap())
            .collect::<Vec<String>>();

        Bulb {
            id: values[0].clone(),
            model: values[1].clone(),
            fw_ver: v
    
    pub fn new(search_response: &str) -> Bulb {
        let params = ["id", "model", "fw_ver", "support", "power", "bright", "color_mode", "ct", "rgb", "hue", "sat", "name"];
        let values = params
            .iter()
            .map(|p| Bulb::get_param_value(search_response, p).unwrap())
            .collect::<Vec<String>>();

        Bulb {
            id: values[0].clone(),
            model: values[1].clone(),
            fw_ver: values[2].parse::<u16>().unwrap(),
            support: values[3].clone(),
            power: values[4] == "on",
            bright: values[5].parse::<u8>().unwrap(),
            color_mode: values[6].parse::<u8>().unwrap(),
            ct: values[7].parse::<u16>().unwrap(),
            rgb: RGB::new(values[8].parse::<u32>().unwrap()),
            hue: values[9].parse::<u16>().unwrap(),
            sat: values[10].parse::<u8>().unwrap(),
            name: values[11].clone(),
            ip: Bulb::get_ip(search_response).unwrap()
        }
    }