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: passwd.rs
    path of file: ./repos/super_clipboard/src
    
    the code of the file until where you have to start completion: use rand::distributions::Uniform;
use rand::rngs::StdRng;
use rand::{Rng, RngCore, SeedableRng};

use crate::settings::PasswordGenSettings;

pub const SPECIAL_CHARS: [char; 18] = [
    '!', '@', '#', '$', '%', '&', '^', '*', ']', '[', '(', ')', '{', '}', '+', '-', 'ñ', 'Ñ',
];

pub struct PasswordGenerator {
    chars: Vec<char>,
    range: Uniform<usize>,
    rng: StdRng,
}

impl PasswordGenerator {
    pub fn new(config: &PasswordGenSettings)
    
    pub fn new(config: &PasswordGenSettings) -> Self {
        let mut chars: Vec<char> = Vec::new();

        if config.special {
            chars.append(&mut SPECIAL_CHARS.to_vec());
        }

        if config.upper {
            let mut upper = ('A'..='Z').collect();
            chars.append(&mut upper);
        }

        if config.lower {
            let mut lower = ('a'..='z').collect();
            chars.append(&mut lower);
        }

        if config.number {
            let mut number = ('0'..='9').collect();
            chars.append(&mut number);
        }

        let alphabet_length = chars.len();
        let mut seed = [0u8; 32];
        rand::thread_rng().fill_bytes(&mut seed);

        Self {
            chars,
            range: Uniform::new(0, alphabet_length),
            rng: StdRng::from_seed(seed),
        }
    }