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/alexandrie/crates/alexandrie/src/config/frontend
    
    the code of the file until where you have to start completion: use std::path::PathBuf;

use handlebars::Handlebars;
use serde::{Deserialize, Serialize};

use crate::config::frontend::auth::{AuthConfig, AuthState};

/// The frontend authentication configuration module.
pub mod auth;

use crate::frontend::helpers;

fn enabled_def() -> bool {
    true
}

/// Represent a link entry.
#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
pub struct Link {
    /// The name of the related link.
    pub name: String,
    /// The target o
    
    fn from(config: FrontendConfig) -> FrontendState {
        let auth = AuthState::new(&config.auth).expect("could not initialize authentication state");

        let mut handlebars = Handlebars::new();
        handlebars
            .register_templates_directory(".hbs", &config.templates.path)
            .expect("could not register templates directory to Handlebars");

        handlebars.register_helper("equal", Box::new(helpers::hbs_equal));

        FrontendState {
            auth,
            handlebars,
            config,
        }
    }