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: config.rs
    path of file: ./repos/cargo-mobile/src/android
    
    the code of the file until where you have to start completion: use crate::{
    config::app::App,
    util::{self, cli::Report},
};
use serde::{Deserialize, Serialize};
use std::{
    
    pub fn from_raw(app: App, raw: Option<Raw>) -> Result<Self, Error> {
        let raw = raw.unwrap_or_default();

        let min_sdk_version = raw.min_sdk_version.unwrap_or_else(|| {
            log::info!(
                "`{}.min-sdk-version` not set; defaulting to {}",
                super::NAME,
                DEFAULT_MIN_SDK_VERSION
            );
            DEFAULT_MIN_SDK_VERSION
        });

        let vulkan_validation = raw.vulkan_validation.unwrap_or_else(|| {
            log::info!(
                "`{}.vulkan-validation` not set; defaulting to {}",
                super::NAME,
                DEFAULT_VULKAN_VALIDATION
            );
            DEFAULT_VULKAN_VALIDATION
        });

        let project_dir = if let Some(project_dir) = raw.project_dir {
            if project_dir == DEFAULT_PROJECT_DIR {
                log::warn!(
                    "`{}.project-dir` is set to the default value; you can remove it from your config",
                    super::NAME
                );
            }
            if util::under_root(&project_dir, app.root_dir()).map_err(|cause| {
                Error::ProjectDirInvalid(ProjectDirInvalid::NormalizationFailed {
                    project_dir: project_dir.clone(),
                    cause,
                })
            })? {
                if !project_dir.contains(' ') {
                    Ok(project_dir.into())
                } else {
                    Err(Error::ProjectDirInvalid(
                        ProjectDirInvalid::ContainsSpaces { project_dir },
                    ))
                }
            } else {
                Err(Error::ProjectDirInvalid(
                    ProjectDirInvalid::OutsideOfAppRoot {
                        project_dir,
                        root_dir: app.root_dir().to_owned(),
                    },
                ))
            }
        } else {
            log::info!(
                "`{}.project-dir` not set; defaulting to {:?}",
                super::NAME,
                DEFAULT_PROJECT_DIR
            );
            Ok(DEFAULT_PROJECT_DIR.into())
        }?;

        Ok(Self {
            app,
            min_sdk_version,
            vulkan_validation,
            project_dir,
        })
    }