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: tukui.rs
    path of file: ./repos/ajour/crates/core/src/repository/backend
    
    the code of the file until where you have to start completion: use super::*;
use crate::config::Flavor;
use crate::error::{DownloadError, RepositoryError};
use crate::network::request_async;
use crate::repository::{ReleaseChannel, RemotePackage, RepositoryKind, RepositoryPackage};
use crate::utility
    
pub(crate) fn metadata_from_tukui_package(package: TukuiPackage) -> RepositoryMetadata {
    let mut remote_packages = HashMap::new();

    {
        let version = package.version.clone();
        let download_url = package.url.clone();

        let date_time = NaiveDateTime::parse_from_str(&package.lastupdate, "%Y-%m-%d %H:%M:%S")
            .map_or(
                NaiveDateTime::parse_from_str(
                    &format!("{} 00:00:00", &package.lastupdate),
                    "%Y-%m-%d %T",
                ),
                std::result::Result::Ok,
            )
            .map(|d| Utc.from_utc_datetime(&d))
            .ok();

        let package = RemotePackage {
            version,
            download_url,
            date_time,
            file_id: None,
            modules: vec![],
        };

        // Since Tukui does not support release channels, our default is 'stable'.
        remote_packages.insert(ReleaseChannel::Stable, package);
    }

    let website_url = Some(package.web_url.clone());
    let changelog_url = Some(format!("{}&changelog", package.web_url));
    let game_version = package.patch;
    let title = package.name;

    let mut metadata = RepositoryMetadata::empty();
    metadata.website_url = website_url;
    metadata.changelog_url = changelog_url;
    metadata.game_version = game_version;
    metadata.remote_packages = remote_packages;
    metadata.title = Some(title);

    metadata
}