async fn create_nodes<'a, 'b>(
        &mut self,
        json_data: json::Value,
        service_fs: &'a mut ServiceFs<ServiceObjLocal<'b, ()>>,
    ) -> Result<(), Error> {
        // Iterate through each object in the top-level array, which represents configuration for a
        // single node
        for node_config in json_data.as_array().unwrap().iter() {
            let node = self.create_node(node_config.clone(), service_fs).await?;
            self.nodes.insert(node_config["name"].as_str().unwrap().to_string(), node);
        }
        Ok(())
    }
/// Creates the nodes using the specified JSON object, adding them to the `nodes` HashMap.
Creates the nodes using the specified JSON object, adding them to the `nodes` HashMap.
Creates the nodes using the specified JSON object adding them to the ` nodes ` HashMap .
async fn create_nodes<'a, 'b>(
        &mut self,
        json_data: json::Value,
        service_fs: &'a mut ServiceFs<ServiceObjLocal<'b, ()>>,
    ) -> Result<(), Error> {
        // Iterate through each object in the top-level array, which represents configuration for a
        // single node
        for node_config in json_data.as_array().unwrap().iter() {
            let node = self.create_node(node_config.clone(), service_fs).await?;
            self.nodes.insert(node_config["name"].as_str().unwrap().to_string(), node);
        }
        Ok(())
    }
async fn create_nodes < ' a , ' b > ( & mut self , json_data : json :: Value , service_fs : & ' a mut ServiceFs < ServiceObjLocal < ' b , ( ) > > , ) -> Result < ( ) , Error > { // Iterate through each object in the top-level array, which represents configuration for a // single node for node_config in json_data . as_array ( ) . unwrap ( ) . iter ( ) { let node = self . create_node ( node_config . clone ( ) , service_fs ) . await ? ; self . nodes . insert ( node_config [ " " ] . as_str ( ) . unwrap ( ) . to_string ( ) , node ) ; } Ok ( ( ) ) }
Creates the nodes using the specified JSON object, adding them to the `nodes` HashMap.
Creates the nodes using the specified JSON object adding them to the ` nodes ` HashMap .
&mut self
json_data
json::Value
service_fs
&'a mut ServiceFs<ServiceObjLocal<'b, ()>>
&mut self
json_data
json::Value
service_fs
&'a mut ServiceFs<ServiceObjLocal<'b, ()>>