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: mod.rs
    path of file: ./repos/actix-swagger/swagg/src/highway
    
    the code of the file until where you have to start completion: //! # Highway
//!
//! This module is a database of components and paths
//! Useful when converting OpenAPI structures to printer structures

use crate::printer;
use indexmap::IndexMap;
use openapiv3::{ReferenceOr, Schema};

/// List of components ready to be printed
#[derive(Debug, Default)]
pub struct Components {
    pub request_bodies: IndexMap<String, RequestBody>,
    pub schemas: IndexMap<String, Component>,
}

#[derive(Debug, Default, PartialEq, Eq)]
pub struct RequestBody {
    pub name: String,
    pub required: bool,
    pub description: Option<String>,
    pub fields: IndexMap<String, ComponentField>,
}

#[derive(Debug, Default, PartialEq, Eq)]
pub struct Component {
    pub name: String,
    pub description: Option<String>,
    pub kind: ComponentKind,
}

#[de
    
fn into_field_type(name: &String, field: ComponentField) -> comp::Field {
    let field_type = match field.field_type {
        FieldType::String => comp::FieldType::Native(comp::NativeType::String {
            format: Default::default(),
        }),
        FieldType::Integer => comp::FieldType::Native(comp::NativeType::Integer {
            format: Default::default(),
        }),
        FieldType::Number => comp::FieldType::Native(comp::NativeType::Float {
            format: Default::default(),
        }),
        FieldType::Boolean => comp::FieldType::Native(comp::NativeType::Boolean),
        FieldType::Type(type_path) => {
            if type_path.contains("::") || type_path.contains("<") {
                comp::FieldType::Internal(type_path)
            } else {
                comp::FieldType::Custom(type_path)
            }
        }
    };

    comp::Field {
        name: name.clone(),
        description: field.description,
        required: field.required,
        field_type,
    }
}