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: the_first_great_magic.rs
    path of file: ./repos/genshin_artifact/mona_core/src/weapon/weapons/bows
    
    the code of the file until where you have to start completion: use crate::attribute::{Attribute, AttributeName, AttributeCommon};
use crate::character::character_common_d
    
    fn apply(&self, data: &WeaponCommonData, attribute: &mut A) {
        let refine = data.refine as f64;

        attribute.set_value_by(AttributeName::BonusChargedAttack, "最初的大魔术被动", 0.04 * refine + 0.12);
        if self.diff_count > 0.0 {
            let interval = 0.04 * refine + 0.12;
            attribute.add_atk_percentage("最初的大魔术被动", self.same_count * interval);
        }
    }