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: service_info.rs
    path of file: ./repos/CYFS/src/service/ood-daemon/src/service
    
    the code of the file until where you have to start completion: use crate::package::ServicePackage;
use crate::config::{ServiceConfig, OOD_DAEMON_SERVICE};
use cyfs_base::{BuckyError, BuckyErrorCode, BuckyResult};
use cyfs_util::ZipPackage;

use serde::Serialize;
use serde_json::{Map, Value};
use std::collections::HashMap;
use std::fs::File;
use std::io::BufReader;
use std::path::{Path, PathB
    
    fn load_package_config(&mut self, service_node: &Map<String, Value>) -> BuckyResult<()> {
        for (k, v) in service_node {
            match k.as_str() {
                "version" => {
                    if v.is_string() {
                        self.version = v.as_str().unwrap_or("").to_string();
                    }
                }
                "scripts" => {
                    if let Some(scripts_node) = v.as_object() {
                        self.load_scripts(scripts_node)?;
                    } else {
                        let msg = format!("invalid scripts node format: {:?}", v);
                        error!("{}", msg);
                        return BuckyResult::Err(BuckyError::new(BuckyErrorCode::InvalidData, msg));
                    }
                }
                _ => {}
            }
        }

        Ok(())
    }