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: barbara_default.rs
    path of file: ./repos/genshin_artifact/mona_core/src/target_functions/target_functions/hydro
    
    the code of the file until where you have to start completion: use crate::artifacts::{Artifact, ArtifactSetName};
use crate::artifacts::effect_config::ArtifactEffectConfig;
use crate::attribute::{Attribute, AttributeName, SimpleAttributeGraph2};
use crate::character::{Character, CharacterName};
use crate::character::character_common_data::CharacterCommonData;
use crate::character::characters::Barbara;
use crate::ch
    
    fn target(&self, attribute: &SimpleAttributeGraph2, character: &Character<SimpleAttributeGraph2>, _weapon: &Weapon<SimpleAttributeGraph2>, _artifacts: &[&Artifact], enemy: &Enemy) -> f64 {
        let context: DamageContext<'_, SimpleAttributeGraph2> = DamageContext {
            character_common_data: &character.common_data,
            attribute,
            enemy
        };

        type S = <Barbara as CharacterTrait>::DamageEnumType;
        let heal_e1 = Barbara::damage::<SimpleDamageBuilder>(&context, S::EHeal1, &CharacterSkillConfig::NoConfig, None);
        const ENV_CHARGE: f64 = 2.3;
        const E1_COUNT: f64 = 10.0;
        const E2_COUNT: f64 = 3.0;

        let heal_e = E1_COUNT * heal_e1.normal.expectation + E2_COUNT * heal_e1.normal.expectation * 5.33;
        let heal_q = heal_e1.normal.expectation * 23.467;

        let recharge = attribute.get_value(AttributeName::Recharge);

        heal_q / 20.0_f64.max(80.0 / (ENV_CHARGE * recharge)) + heal_e / 32.0
    }