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: store_role_request.rs
    path of file: ./repos/avored-rust-cms/src/api/rest_api/handlers/role/request
    
    the code of the file until where you have to start completion: use crate::error::Result;
use serde::Deserialize;
use validator::{Validate, ValidationErrors, ValidationErrorsKind};

#[derive(Deserialize, Debug, Clone, Validate, Default)]
pub struct StoreRoleRequest {
    #[validate(length(min = 1, message = "The name is a required field."))]
    pub name: String,

    #[validate(length(min = 1, message = "The identifier is a required field."))]
    pub identifier: String,

    pub permissions: Vec<String>,
}

#[derive(Deserialize, Debug, Clone, Validate, Default)]
pub struct Permission {
    pub dashboard: Option<bool>,
    pub admin_user_table: Option<bool>,
    
    
    pub fn _validate_errors(&self) -> Result<ValidationErrors> {
        let validation_error_list = match self.validate() {
            Ok(_) => ValidationErrors::new(),
            Err(errors) => errors,
        };

        for (_field_name, error) in validation_error_list.errors() {
            match &error {
                ValidationErrorsKind::Field(field_errors) => {
                    for _field_error in field_errors {
                        // let message = match &field_error.message {
                        //     Some(message) => message,
                        //     None => continue,
                        // };
                        //
                        // if !message.is_empty() {
                        //     // let key = field_name.clone();
                        //     let validation_key = format!("validation_error_{}", field_name);
                        //     session
                        //         .insert(&validation_key, message)
                        //         .expect("Could not store the validation errors into session.");
                        // }
                    }
                }
                ValidationErrorsKind::Struct(_) => continue,
                ValidationErrorsKind::List(_) => continue,
            }
        }

        Ok(validation_error_list)
    }