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: import.rs
    path of file: ./repos/fastn/ftd/src/ast
    
    the code of the file until where you have to start completion: #[derive(Debug, Clone, PartialEq, serde::Deserialize, serde::Serialize)]
pub struct Import {
    pub module: String,
    pub alias: String,
    #[serde(rename = "line-number")]
    pub line_number: usize,
    pub exports: Option<Export>,
    pub exposing: Option<Exposing>,
}

#[derive(Debug, Clone, PartialEq, serde::Deserialize, serde::Serialize)]
pub enum Export {
    All,
    Things(Vec<String>),
}

#[derive(Debug, Clone, PartialEq, serde::Deserialize, serde::Serialize)]
pub enum Exposing {
    All,
    Things(Vec<String>),
}

pub const IMPORT: &str = "import";

impl Import {
    fn new(
        module: &str,
        alias: &str,
        line_number: usize,
        exports: Option<Export>,
        exposing: Option<Exposing>,
    ) -> Import {
        Import {
            module: module.to_string(),
            alias: alias.to_string(),
            line_number,
            exports,
            exposing,
        }
    }
    pub(crate) fn is_import(section: &ftd::p1::Section) -> bool {
        section.name.eq(IMPORT)
    }

    pub(crate) fn from_p1(section: &ftd::p1::Section, doc_id: &str) -> ftd::ast::Result<Import> {
        if !Self::is_import(section) {
            return ftd::ast::parse_error(
                format!("Section is not import section, found `{:?}`", section),
                doc_id,
                section.line_numb
    
    pub(crate) fn from_p1(section: &ftd::p1::Section, doc_id: &str) -> ftd::ast::Result<Import> {
        if !Self::is_import(section) {
            return ftd::ast::parse_error(
                format!("Section is not import section, found `{:?}`", section),
                doc_id,
                section.line_number,
            );
        }
        if !section.sub_sections.is_empty() {
            return ftd::ast::parse_error(
                format!(
                    "SubSection not expected for import statement `{:?}`",
                    section
                ),
                doc_id,
                section.line_number,
            );
        }
        let exports = Export::get_exports_from_headers(&section.headers, doc_id)?;
        let exposing = Exposing::get_exposing_from_headers(&section.headers, doc_id)?;
        match &section.caption {
            Some(ftd::p1::Header::KV(ftd::p1::header::KV {
                value: Some(value), ..
            })) => {
                let (module, alias) = ftd::ast::utils::get_import_alias(value.as_str());
                Ok(Import::new(
                    module.as_str(),
                    alias.as_str(),
                    section.line_number,
                    exports,
                    exposing,
                ))
            }
            t => ftd::ast::parse_error(
                format!(
                    "Expected value in caption for import statement, found: `{:?}`",
                    t
                ),
                doc_id,
                section.line_number,
            ),
        }
    }