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: highlighted_string.rs
    path of file: ./repos/dfir-toolkit/src/bin/evtxls
    
    the code of the file until where you have to start completion: use std::{net::Ipv4Addr, str::FromStr, collections::HashMap};

use colored::{ColoredString, Colorize};
use lazy_regex::regex;
use regex::Regex;
use serde::Serialize;
use serde_json::{Value, 
    
    pub fn build_from(&self, s: &str) -> HighlightedString {
        let ip_regex = regex!(r"\b(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\b");
        let file_regex = regex!(r"[a-zA-Z]:\\\\?(?:[^\\]+\\\\?)+");
        if ip_regex.is_match(s) {
            for c in ip_regex.captures_iter(s) {
                for m in c.iter().flatten() {
                    let ip_addr = match Ipv4Addr::from_str(m.as_str()) {
                        Ok(addr) => addr,
                        Err(_) => {
                            log::warn!("invalid IP address: {}, don't highlighting it", m.as_str());
                            continue;
                        }
                    };
                    
                    if ip_addr.is_link_local() || ip_addr.is_loopback() || ip_addr.is_unspecified() {
                        continue;
                    }
                    if ip_addr.is_private() {
                        return s.bright_purple().into();
                    }
    
                    //if ip_addr.is_global() {
                        return s.red().on_bright_yellow().into();
                    //}
                }
            }
        }
    
        if file_regex.is_match(s) {
            return s.bright_green().into()
        }
    
        if s.to_lowercase().contains("admin") {
            return s.bright_yellow().on_red().into()
        }

        if let Some(regex) = self.custom_regex.as_ref() {
            if regex.is_match(s) {
                return s.blue().on_bright_white().into()
            }
        }
    
        s.bright_blue().into()
    }